Lines Matching refs:netif
58 #include <netif/etharp.h>
59 #include <netif/ppp_oe.h>
71 * as it is already kept in the struct netif.
80 static void ethernetif_input(struct netif *netif);
87 * @param netif the already initialized lwip network interface structure
91 low_level_init(struct netif *netif)
93 //struct ethernetif *ethernetif = netif->state;
96 netif->hwaddr_len = ETHARP_HWADDR_LEN;
99 netif->hwaddr[0] = 0x11;
100 netif->hwaddr[1] = 0x22;
101 netif->hwaddr[2] = 0x33;
102 netif->hwaddr[3] = 0x44;
103 netif->hwaddr[4] = 0x55;
104 netif->hwaddr[5] = 0x66;
107 netif->mtu = 1500;
111 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
114 sys_thread_new("ethernetif_thread", ethernetif_thread, netif,
123 * @param netif the lwip network interface structure for this ethernetif
134 low_level_output(struct netif *netif, struct pbuf *p)
180 * @param netif the lwip network interface structure for this ethernetif
185 low_level_input(struct netif *netif)
253 * @param netif the lwip network interface structure for this ethernetif
256 ethernetif_input(struct netif *netif)
262 p = low_level_input(netif);
278 if (netif->input(p, netif)!=ERR_OK)
298 struct netif *netif = (struct netif *)arg;
302 ethernetif_input(netif);
313 * @param netif the lwip network interface structure for this ethernetif
319 ethernetif_init(struct netif *netif)
323 LWIP_ASSERT("netif != NULL", (netif != NULL));
333 netif->hostname = "lwip";
337 * Initialize the snmp variables and counters inside the struct netif.
341 NETIF_INIT_SNMP(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
343 netif->state = ethernetif;
344 netif->name[0] = IFNAME0;
345 netif->name[1] = IFNAME1;
350 netif->output = etharp_output;
351 netif->linkoutput = low_level_output;
353 ethernetif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
356 low_level_init(netif);