• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/lwip2/src/netif/

Lines Matching refs:netif

57 #include "netif/ppp/pppoe.h"
66 * as it is already kept in the struct netif.
75 static void ethernetif_input(struct netif *netif);
81 * @param netif the already initialized lwip network interface structure
85 low_level_init(struct netif *netif)
87 struct ethernetif *ethernetif = netif->state;
90 netif->hwaddr_len = ETHARP_HWADDR_LEN;
93 netif->hwaddr[0] = ;
95 netif->hwaddr[5] = ;
98 netif->mtu = 1500;
102 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
110 if (netif->mld_mac_filter != NULL) {
113 netif->mld_mac_filter(netif, &ip6_allnodes_ll, NETIF_ADD_MAC_FILTER);
125 * @param netif the lwip network interface structure for this ethernetif
137 low_level_output(struct netif *netif, struct pbuf *p)
139 struct ethernetif *ethernetif = netif->state;
157 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len);
160 MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts);
163 MIB2_STATS_NETIF_INC(netif, ifoutucastpkts);
180 * @param netif the lwip network interface structure for this ethernetif
185 low_level_input(struct netif *netif)
187 struct ethernetif *ethernetif = netif->state;
223 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
226 MIB2_STATS_NETIF_INC(netif, ifinnucastpkts);
229 MIB2_STATS_NETIF_INC(netif, ifinucastpkts);
240 MIB2_STATS_NETIF_INC(netif, ifindiscards);
253 * @param netif the lwip network interface structure for this ethernetif
256 ethernetif_input(struct netif *netif)
262 ethernetif = netif->state;
265 p = low_level_input(netif);
269 if (netif->input(p, netif) != ERR_OK) {
284 * @param netif the lwip network interface structure for this ethernetif
290 ethernetif_init(struct netif *netif)
294 LWIP_ASSERT("netif != NULL", (netif != NULL));
304 netif->hostname = "lwip";
308 * Initialize the snmp variables and counters inside the struct netif.
312 MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
314 netif->state = ethernetif;
315 netif->name[0] = IFNAME0;
316 netif->name[1] = IFNAME1;
321 netif->output = etharp_output;
323 netif->output_ip6 = ethip6_output;
325 netif->linkoutput = low_level_output;
327 ethernetif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
330 low_level_init(netif);