Lines Matching refs:netif
254 void test_tcp_input(struct pbuf *p, struct netif *inp)
274 static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p,
277 struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state;
299 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters,
302 struct netif *n;
303 memset(netif, 0, sizeof(struct netif));
306 netif->state = txcounters;
308 netif->output = test_tcp_netif_output;
309 netif->flags |= NETIF_FLAG_UP | NETIF_FLAG_LINK_UP;
310 ip_addr_copy_from_ip4(netif->netmask, *ip_2_ip4(netmask));
311 ip_addr_copy_from_ip4(netif->ip_addr, *ip_2_ip4(ip_addr));
313 if (n == netif) {
317 netif->next = NULL;
318 netif_list = netif;