Lines Matching refs:netif
55 #include "netif/etharp.h"
56 #include "netif/ppp_oe.h"
65 * as it is already kept in the struct netif.
74 static void ethernetif_input(struct netif *netif);
80 * @param netif the already initialized lwip network interface structure
84 low_level_init(struct netif *netif)
86 struct ethernetif *ethernetif = netif->state;
89 netif->hwaddr_len = ETHARP_HWADDR_LEN;
92 netif->hwaddr[0] = ;
94 netif->hwaddr[5] = ;
97 netif->mtu = 1500;
101 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
111 * @param netif the lwip network interface structure for this ethernetif
123 low_level_output(struct netif *netif, struct pbuf *p)
125 struct ethernetif *ethernetif = netif->state;
156 * @param netif the lwip network interface structure for this ethernetif
161 low_level_input(struct netif *netif)
163 struct ethernetif *ethernetif = netif->state;
220 * @param netif the lwip network interface structure for this ethernetif
223 ethernetif_input(struct netif *netif)
229 ethernetif = netif->state;
232 p = low_level_input(netif);
248 if (netif->input(p, netif)!=ERR_OK)
269 * @param netif the lwip network interface structure for this ethernetif
275 ethernetif_init(struct netif *netif)
279 LWIP_ASSERT("netif != NULL", (netif != NULL));
289 netif->hostname = "lwip";
293 * Initialize the snmp variables and counters inside the struct netif.
297 NETIF_INIT_SNMP(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
299 netif->state = ethernetif;
300 netif->name[0] = IFNAME0;
301 netif->name[1] = IFNAME1;
306 netif->output = etharp_output;
307 netif->linkoutput = low_level_output;
309 ethernetif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
312 low_level_init(netif);