mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-07 20:29:04 +00:00
Fixed frame pad size and compiler warning.
This commit is contained in:
parent
a2b51bf5f1
commit
786ac1d722
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user