127 |
* Dependend on physical layer. This is a safe minimum for 802.3 10base5/T. |
* Dependend on physical layer. This is a safe minimum for 802.3 10base5/T. |
128 |
* @sa RFC1042 |
* @sa RFC1042 |
129 |
*/ |
*/ |
130 |
#define ETH_MIN_FRAME_LEN 76 |
#define ETH_MIN_FRAME_LEN 60 |
131 |
|
|
132 |
#include "cs8900if.h" |
#include "cs8900if.h" |
133 |
#include "lwip/snmp.h" |
#include "lwip/snmp.h" |
679 |
/* update ARP table */ |
/* update ARP table */ |
680 |
etharp_ip_input(netif, p); |
etharp_ip_input(netif, p); |
681 |
/* skip Ethernet header */ |
/* skip Ethernet header */ |
682 |
pbuf_header(p, -sizeof(struct eth_hdr)); |
pbuf_header(p, -(s16_t)sizeof(struct eth_hdr)); |
683 |
LWIP_DEBUGF(NETIF_DEBUG, ("cs8900_input: passing packet up to IP\n")); |
LWIP_DEBUGF(NETIF_DEBUG, ("cs8900_input: passing packet up to IP\n")); |
684 |
/* pass to network layer */ |
/* pass to network layer */ |
685 |
netif->input(p, netif); |
netif->input(p, netif); |