Home
last modified time | relevance | path

Searched refs:test_iface (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.7.0/tests/net/offloaded_netdev/src/
Dmain.c135 struct net_if *test_iface = NET_IF_GET(sock_offload_test_impl, 0); in ZTEST() local
138 zassert_false(net_if_is_admin_up(test_iface), in ZTEST()
142 (void)net_if_up(test_iface); in ZTEST()
149 zassert_true(net_if_is_admin_up(test_iface), in ZTEST()
153 (void)net_if_down(test_iface); in ZTEST()
160 zassert_false(net_if_is_admin_up(test_iface), in ZTEST()
166 struct net_if *test_iface = NET_IF_GET(sock_offload_test_no_impl, 0); in ZTEST() local
169 zassert_false(net_if_is_admin_up(test_iface), in ZTEST()
173 (void)net_if_up(test_iface); in ZTEST()
180 zassert_true(net_if_is_admin_up(test_iface), in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/modem/modem_ppp/src/
Dmain.c110 static struct net_if test_iface = { variable
126 .iface = &test_iface,
362 pkt = net_pkt_alloc_with_buffer(&test_iface, 256, AF_UNSPEC, 0, K_NO_WAIT); in ZTEST()
418 pkt = net_pkt_alloc_with_buffer(&test_iface, 256, AF_UNSPEC, 0, K_NO_WAIT); in ZTEST()
447 pkts[i] = net_pkt_alloc_with_buffer(&test_iface, 256, AF_UNSPEC, 0, K_NO_WAIT); in ZTEST()
473 pkt = net_pkt_alloc_with_buffer(&test_iface, TEST_MODEM_PPP_IP_FRAME_SEND_LARGE_N, in ZTEST()
/Zephyr-Core-3.7.0/tests/net/icmpv6/src/
Dmain.c32 static struct net_if *test_iface; variable
161 net_pkt_set_iface(pkt, test_iface); in create_pkt()
244 test_iface = net_if_lookup_by_dev(DEVICE_GET(net_icmpv6_test)); in setup()
/Zephyr-Core-3.7.0/subsys/net/pkt_filter/
Dbase.c239 struct npf_test_iface *test_iface = in npf_iface_match() local
242 return test_iface->iface == net_pkt_iface(pkt); in npf_iface_match()
252 struct npf_test_iface *test_iface = in npf_orig_iface_match() local
255 return test_iface->iface == net_pkt_orig_iface(pkt); in npf_orig_iface_match()
/Zephyr-Core-3.7.0/tests/net/ipv6/src/
Dmain.c1973 struct net_if *test_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in ZTEST() local
1985 maddr = net_if_ipv6_maddr_add(test_iface, &mcast_iface2); in ZTEST()
1987 net_if_ipv6_maddr_join(test_iface, maddr); in ZTEST()
2002 net_if_ipv6_maddr_leave(test_iface, maddr); in ZTEST()
2004 net_if_ipv6_maddr_rm(test_iface, &mcast_iface2); in ZTEST()