69 struct eth_addr *ethaddr;
74static void ethernetif_input(
struct netif *
netif);
134 for(q = p; q !=
NULL; q = q->
next) {
141 signal that packet should be sent();
186 for(q = p; q !=
NULL; q = q->
next) {
197 acknowledge that packet has been
read();
225 struct ethernetif *ethernetif;
226 struct eth_hdr *ethhdr;
232 p = low_level_input(
netif);
234 if (p ==
NULL)
return;
238 switch (
htons(ethhdr->type)) {
244 case ETHTYPE_PPPOEDISC:
277 struct ethernetif *ethernetif;
281 ethernetif =
mem_malloc(
sizeof(
struct ethernetif));
282 if (ethernetif ==
NULL) {
287#if LWIP_NETIF_HOSTNAME
289 netif->hostname =
"lwip";
309 ethernetif->ethaddr = (
struct eth_addr *)&(
netif->
hwaddr[0]);
312 low_level_init(
netif);
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
void * mem_malloc(mem_size_t size)
#define NETIF_FLAG_LINK_UP
#define NETIF_FLAG_ETHARP
#define NETIF_FLAG_BROADCAST
#define NETIF_INIT_SNMP(netif, type, speed)
int read(int fileDesc, void *ptr, size_t len)
int link(const char *existing, const char *new)
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
@ snmp_ifType_ethernet_csmacd
#define LINK_STATS_INC(x)
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
netif_linkoutput_fn linkoutput