Lines Matching defs:netif
34 #include "lwip/netif.h"
36 #include "netif/etharp.h"
61 static err_t lwip_tx_func(struct netif *netif, struct pbuf *p)
63 LWIP_UNUSED_ARG(netif);
68 static err_t testif_init(struct netif *netif)
70 netif->name[0] = 'f';
71 netif->name[1] = 'z';
72 netif->output = etharp_output;
73 netif->linkoutput = lwip_tx_func;
74 netif->mtu = 1500;
75 netif->hwaddr_len = 6;
76 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP;
78 netif->hwaddr[0] = 0x00;
79 netif->hwaddr[1] = 0x23;
80 netif->hwaddr[2] = 0xC1;
81 netif->hwaddr[3] = 0xDE;
82 netif->hwaddr[4] = 0xD0;
83 netif->hwaddr[5] = 0x0D;
86 netif->output_ip6 = ethip6_output;
87 netif->ip6_autoconfig_enabled = 1;
88 netif_create_ip6_linklocal_address(netif, 1);
89 netif->flags |= NETIF_FLAG_MLD6;
95 static void input_pkt(struct netif *netif, const u8_t *data, size_t len)
107 err = netif->input(p, netif);
113 static void input_pkts(struct netif *netif, const u8_t *data, size_t len)
131 input_pkt(netif, ptr, frame_len);
137 input_pkt(netif, data, len);
143 struct netif net_test;