Searched refs:net_test (Results 1 – 3 of 3) sorted by relevance
/third_party/lwip/test/unit/dhcp/ |
D | test_dhcp.c | 9 static struct netif net_test; variable 243 fail_unless(netif == &net_test); in lwip_tx_func() 450 netif_add(&net_test, &addr, &netmask, &gw, &net_test, testif_init, ethernet_input); in START_TEST() 451 netif_set_link_up(&net_test); in START_TEST() 452 netif_set_up(&net_test); in START_TEST() 454 dhcp_start(&net_test); in START_TEST() 457 xid = netif_dhcp_data(&net_test)->xid; /* Write bad xid, not using htonl! */ in START_TEST() 459 send_pkt(&net_test, dhcp_offer, sizeof(dhcp_offer)); in START_TEST() 462 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST() 463 fail_if(memcmp(&netmask, &net_test.netmask, sizeof(ip4_addr_t))); in START_TEST() [all …]
|
/third_party/lwip/test/unit/core/ |
D | test_netif.c | 12 static struct netif net_test; variable 82 fail_unless(netif == &net_test); in test_netif_ext_callback() 114 netif_add(&net_test, &addr, &netmask, &gw, &net_test, testif_init, ethernet_input); in NETIF_DECLARE_EXT_CALLBACK() 119 netif_set_link_up(&net_test); in NETIF_DECLARE_EXT_CALLBACK() 124 netif_set_up(&net_test); in NETIF_DECLARE_EXT_CALLBACK() 130 netif_set_ipaddr(&net_test, &addr); in NETIF_DECLARE_EXT_CALLBACK() 136 netif_set_netmask(&net_test, &netmask); in NETIF_DECLARE_EXT_CALLBACK() 142 netif_set_gw(&net_test, &gw); in NETIF_DECLARE_EXT_CALLBACK() 148 netif_set_ipaddr(&net_test, &addr); in NETIF_DECLARE_EXT_CALLBACK() 154 netif_set_netmask(&net_test, &netmask); in NETIF_DECLARE_EXT_CALLBACK() [all …]
|
/third_party/lwip/test/fuzz/ |
D | fuzz.c | 143 struct netif net_test; in main() local 155 netif_add(&net_test, &addr, &netmask, &gw, &net_test, testif_init, ethernet_input); in main() 156 netif_set_up(&net_test); in main() 157 netif_set_link_up(&net_test); in main() 162 dns_setserver(0, &net_test.gw); in main() 168 mdns_resp_add_netif(&net_test, "hostname", 255); in main() 186 input_pkts(&net_test, pktbuf, len); in main()
|