Lines Matching refs:netif
238 void test_tcp_input(struct pbuf *p, struct netif *inp)
254 static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p,
257 struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state;
276 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters,
279 struct netif *n;
280 memset(netif, 0, sizeof(struct netif));
282 netif->output = test_tcp_netif_output;
283 netif->state = txcounters;
284 netif->flags |= NETIF_FLAG_UP;
285 ip_addr_copy(netif->netmask, *netmask);
286 ip_addr_copy(netif->ip_addr, *ip_addr);
288 if (n == netif) {
292 netif->next = NULL;
293 netif_list = netif;