From 786ac1d722c489128515c5c51f36e1a4db181bd4 Mon Sep 17 00:00:00 2001 From: christiaans Date: Fri, 29 Oct 2004 08:54:45 +0000 Subject: [PATCH] Fixed frame pad size and compiler warning. --- ports/c16x/netif/cs8900if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/c16x/netif/cs8900if.c b/ports/c16x/netif/cs8900if.c index 501481a..7197275 100644 --- a/ports/c16x/netif/cs8900if.c +++ b/ports/c16x/netif/cs8900if.c @@ -127,7 +127,7 @@ * Dependend on physical layer. This is a safe minimum for 802.3 10base5/T. * @sa RFC1042 */ -#define ETH_MIN_FRAME_LEN 76 +#define ETH_MIN_FRAME_LEN 60 #include "cs8900if.h" #include "lwip/snmp.h" @@ -679,7 +679,7 @@ void cs8900if_input(struct netif *netif) /* update ARP table */ etharp_ip_input(netif, p); /* skip Ethernet header */ - pbuf_header(p, -sizeof(struct eth_hdr)); + pbuf_header(p, -(s16_t)sizeof(struct eth_hdr)); LWIP_DEBUGF(NETIF_DEBUG, ("cs8900_input: passing packet up to IP\n")); /* pass to network layer */ netif->input(p, netif);