Lines Matching refs:netif
17 static struct netif test_netif1, test_netif2;
38 default_netif_output(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
40 fail_unless((netif == &test_netif1) || (netif == &test_netif2));
48 default_netif_linkoutput(struct netif *netif, struct pbuf *p)
50 fail_unless((netif == &test_netif1) || (netif == &test_netif2));
57 default_netif_init(struct netif *netif)
59 fail_unless(netif != NULL);
60 netif->output = default_netif_output;
61 netif->linkoutput = default_netif_linkoutput;
62 netif->mtu = 1500;
63 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
64 netif->hwaddr_len = 6;
71 struct netif *n;
211 /* bind 2 pcbs to specific netif IP and test which one gets broadcasts */