69 struct eth_addr *ethaddr;
74static void ethernetif_input(
struct netif *
netif);
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);
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
void * mem_malloc(mem_size_t size)
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
@ snmp_ifType_ethernet_csmacd
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble GLdouble q
#define NETIF_FLAG_LINK_UP
#define NETIF_FLAG_ETHARP
#define NETIF_FLAG_BROADCAST
#define NETIF_INIT_SNMP(netif, type, speed)
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)
#define LINK_STATS_INC(x)
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
netif_linkoutput_fn linkoutput