/Zephyr-latest/tests/net/ppp/driver/src/ |
D | main.c | 38 static struct net_if *net_iface; variable 211 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(PPP)); in test_iface_setup() 212 zassert_not_null(net_iface, "PPP interface not found!"); in test_iface_setup() 219 net_if_up(net_iface); in test_iface_setup() 248 NET_DBG("Sending data to iface %p", net_iface); in test_send_ppp_pkt_with_escapes() 250 ret = send_iface(net_iface, ppp_recv_data1, sizeof(ppp_recv_data1), in test_send_ppp_pkt_with_escapes() 260 NET_DBG("Sending data to iface %p", net_iface); in test_send_ppp_pkt_with_full_and_partial() 262 ret = send_iface(net_iface, ppp_recv_data2, sizeof(ppp_recv_data2), in test_send_ppp_pkt_with_full_and_partial() 323 pkt = net_pkt_alloc_with_buffer(net_iface, len, AF_UNSPEC, 0, K_NO_WAIT); in ppp_verify_fcs() 394 pkt = net_pkt_alloc_with_buffer(net_iface, len, AF_UNSPEC, 0, K_NO_WAIT); in ppp_calc_fcs() [all …]
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_test.c | 170 static struct net_if *net_iface; variable 320 pkt = net_pkt_rx_alloc_with_buffer(net_iface, sizeof(data_pkt_with_ar), AF_UNSPEC, 0, in get_data_pkt_with_ar() 335 struct ieee802154_context *ctx = net_if_l2_data(net_iface); in set_up_security() 343 if (disassociate(net_iface, ctx) != 0) { in set_up_security() 355 if (net_mgmt(NET_REQUEST_IEEE802154_SET_SECURITY_SETTINGS, net_iface, ¶ms, in set_up_security() 362 associate(net_iface, ctx, saved_short_addr) != 0) { in set_up_security() 371 struct ieee802154_context *ctx = net_if_l2_data(net_iface); in tear_down_security() 377 if (disassociate(net_iface, ctx) != 0) { in tear_down_security() 381 if (net_mgmt(NET_REQUEST_IEEE802154_SET_SECURITY_SETTINGS, net_iface, ¶ms, in tear_down_security() 388 associate(net_iface, ctx, saved_short_addr) != 0) { in tear_down_security() [all …]
|
D | ieee802154_shell_test.c | 28 static struct net_if *net_iface; variable 212 pkt = net_pkt_rx_alloc_with_buffer(net_iface, length, AF_UNSPEC, 0, K_FOREVER); in create_and_receive_packet() 222 if (net_recv_data(net_iface, pkt) < 0) { in create_and_receive_packet() 274 struct ieee802154_context *ctx = net_if_l2_data(net_iface); in ZTEST() 288 pkt = ieee802154_create_mac_cmd_frame(net_iface, IEEE802154_CFI_ASSOCIATION_RESPONSE, in ZTEST() 301 if (net_recv_data(net_iface, pkt) < 0) { in ZTEST() 322 struct ieee802154_context *ctx = net_if_l2_data(net_iface); in ZTEST() 367 struct ieee802154_context *ctx = net_if_l2_data(net_iface); in ZTEST() 388 pkt = ieee802154_create_mac_cmd_frame(net_iface, IEEE802154_CFI_DISASSOCIATION_NOTIFICATION, in ZTEST() 406 if (net_recv_data(net_iface, pkt) < 0) { in ZTEST() [all …]
|
/Zephyr-latest/tests/net/icmpv4/src/ |
D | main.c | 117 static struct net_if *net_iface; variable 423 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in icmpv4_setup() 424 if (!net_iface) { in icmpv4_setup() 428 ifaddr = net_if_ipv4_addr_add(net_iface, &my_addr, NET_ADDR_MANUAL, 0); in icmpv4_setup() 439 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in icmpv4_teardown() 441 net_if_ipv4_addr_rm(net_iface, &my_addr); in icmpv4_teardown() 450 pkt = prepare_echo_request(net_iface); in icmpv4_send_echo_req() 472 pkt = prepare_echo_reply(net_iface); in icmpv4_send_echo_rep() 492 pkt = prepare_echo_request_with_options(net_iface); in ZTEST() 507 pkt = prepare_echo_request_with_bad_options(net_iface); in ZTEST()
|
/Zephyr-latest/tests/net/iface/src/ |
D | main.c | 510 ZTEST(net_iface, test_oper_state) in ZTEST() argument 607 ZTEST(net_iface, test_send_iface1) in ZTEST() argument 618 ZTEST(net_iface, test_send_iface2) in ZTEST() argument 629 ZTEST(net_iface, test_send_iface3) in ZTEST() argument 666 ZTEST(net_iface, test_send_iface1_down_up) in ZTEST() argument 672 ZTEST(net_iface, test_select_src_iface) in ZTEST() argument 786 ZTEST(net_iface, test_promisc_mode) in ZTEST() argument 827 ZTEST(net_iface, test_v4_addr_add_rm) in ZTEST() argument 890 ZTEST(net_iface, test_v4_addr_add_rm_user_from_userspace) in ZTEST() argument 941 ZTEST(net_iface, test_v6_addr_add_rm) in ZTEST() argument [all …]
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.c | 412 dev->scan_cb(dev->net_iface, 0, &res); in MODEM_CMD_DIRECT_DEFINE() 572 wifi_mgmt_raise_connect_result_event(dev->net_iface, 0); in MODEM_CMD_DEFINE() 573 net_if_dormant_off(dev->net_iface); in MODEM_CMD_DEFINE() 598 net_if_ipv4_addr_rm(dev->net_iface, &dev->ip); in esp_mgmt_disconnect_work() 601 net_if_dormant_on(dev->net_iface); in esp_mgmt_disconnect_work() 603 wifi_mgmt_raise_disconnect_result_event(dev->net_iface, 0); in esp_mgmt_disconnect_work() 670 net_if_ipv4_addr_add(dev->net_iface, &dev->ip, NET_ADDR_MANUAL, 0); in esp_ip_addr_work() 672 net_if_ipv4_addr_add(dev->net_iface, &dev->ip, NET_ADDR_DHCP, 0); in esp_ip_addr_work() 674 net_if_ipv4_set_gw(dev->net_iface, &dev->gw); in esp_ip_addr_work() 675 net_if_ipv4_set_netmask_by_addr(dev->net_iface, &dev->ip, &dev->nm); in esp_ip_addr_work() [all …]
|
D | esp_socket.c | 112 pkt = net_pkt_rx_alloc_with_buffer(data->net_iface, len, AF_UNSPEC, in esp_socket_prepare_pkt()
|
D | esp.h | 218 struct net_if *net_iface; member
|
/Zephyr-latest/tests/net/igmp/src/ |
D | main.c | 70 static struct net_if *net_iface; variable 284 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in igmp_setup() 286 zassert_not_null(net_iface, "Interface is NULL"); in igmp_setup() 288 ifaddr = net_if_ipv4_addr_add(net_iface, &my_addr, NET_ADDR_MANUAL, 0); in igmp_setup() 305 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in igmp_teardown() 307 net_if_ipv4_addr_rm(net_iface, &my_addr); in igmp_teardown() 332 ret = net_ipv4_igmp_join(net_iface, &mcast_addr, NULL); in join_group() 349 ret = net_ipv4_igmp_leave(net_iface, &mcast_addr); in leave_group() 596 pkt = prepare_igmp_query(net_iface, is_imgpv3); in igmp_send_query() 636 net_if_carrier_off(net_iface); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/net/mld/src/ |
D | main.c | 77 static struct net_if *net_iface; variable 218 zassert_ok(net_if_down(net_iface), "Failed to bring iface down"); in test_iface_down_up() 220 zassert_ok(net_if_up(net_iface), "Failed to bring iface up"); in test_iface_down_up() 225 zassert_ok(net_if_down(net_iface), "Failed to bring iface down"); in test_iface_down_up_delayed_carrier() 227 net_if_carrier_off(net_iface); in test_iface_down_up_delayed_carrier() 228 zassert_ok(net_if_up(net_iface), "Failed to bring iface up"); in test_iface_down_up_delayed_carrier() 230 net_if_carrier_on(net_iface); in test_iface_down_up_delayed_carrier() 235 net_if_carrier_off(net_iface); in test_iface_carrier_off_on() 237 net_if_carrier_on(net_iface); in test_iface_carrier_off_on() 301 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_mld_setup() [all …]
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 77 static struct net_if *net_iface; variable 256 pkt = net_pkt_alloc_with_buffer(net_iface, in tester_prepare_tcp_pkt() 512 net_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in presetup() 513 if (!net_iface) { in presetup() 517 ifaddr = net_if_ipv4_addr_add(net_iface, &my_addr, NET_ADDR_MANUAL, 0); in presetup() 522 ifaddr = net_if_ipv6_addr_add(net_iface, &my_addr_v6, NET_ADDR_MANUAL, 0); in presetup() 575 ret = net_recv_data(net_iface, reply); in handle_client_test() 755 ret = net_recv_data(net_iface, reply); in handle_server_test() 1088 ret = net_recv_data(net_iface, reply); in handle_syn_rst_ack() 1180 ret = net_recv_data(net_iface, reply); in handle_client_fin_wait_2_test() [all …]
|
/Zephyr-latest/drivers/modem/ |
D | quectel-bg9x.h | 78 struct net_if *net_iface; member
|
D | ublox-sara-r4.c | 113 struct net_if *net_iface; member 2104 data->net_iface = iface; in modem_net_iface_init()
|
D | quectel-bg9x.c | 1121 data->net_iface = iface; in modem_net_iface_init()
|