/Zephyr-latest/subsys/net/lib/shell/ |
D | net_shell.c | 136 if (net_if_l2(iface) == &NET_L2_GET_NAME(IEEE802154)) { in iface2str() 146 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface2str() 166 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface2str() 176 if (net_if_l2(iface) == &NET_L2_GET_NAME(PPP)) { in iface2str() 186 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface2str() 196 if (net_if_l2(iface) == &NET_L2_GET_NAME(OPENTHREAD)) { in iface2str() 216 if (net_if_l2(iface) == &NET_L2_GET_NAME(CANBUS_RAW)) { in iface2str()
|
D | vlan.c | 53 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_vlan_cb() 132 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in cmd_net_vlan_add()
|
D | iface.c | 239 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 278 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb() 316 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 331 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb() 479 (net_if_l2(iface) == &NET_L2_GET_NAME(IEEE802154)) || in iface_cb() 594 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in cmd_net_set_mac()
|
/Zephyr-latest/tests/net/ieee802154/custom_l2/src/ |
D | main.c | 76 &NET_L2_GET_NAME(CUSTOM_IEEE802154)); in ZTEST() 100 &NET_L2_GET_NAME(CUSTOM_IEEE802154)); in ZTEST() 123 &NET_L2_GET_NAME(CUSTOM_IEEE802154)); in ZTEST() 141 &NET_L2_GET_NAME(CUSTOM_IEEE802154)); in ZTEST()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_l2.h | 93 #define NET_L2_GET_NAME(_name) _net_l2_##_name macro 95 extern const struct net_l2 NET_L2_GET_NAME(_name) 134 NET_L2_GET_NAME(_name)) = { \
|
/Zephyr-latest/samples/net/virtual/src/ |
D | main.c | 191 if ((net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) && in iface_cb() 192 (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL))) { in iface_cb() 196 if (!ud->ethernet && net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb() 201 if (!ud->ipip && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL) && in iface_cb() 207 if (!ud->my_iface && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL) && in iface_cb() 213 if (!ud->ip_tunnel_1 && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 218 if (!ud->ip_tunnel_2 && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()
|
/Zephyr-latest/subsys/net/l2/virtual/ |
D | virtual.c | 136 &NET_L2_GET_NAME(VIRTUAL)) { in virtual_enable() 322 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_virtual_get_iface() 339 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_virtual_get_name() 359 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_virtual_set_name() 379 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_virtual_set_flags() 396 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_virtual_init()
|
/Zephyr-latest/samples/net/sockets/echo_client/src/ |
D | vlan.c | 24 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 88 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(ETHERNET)); in init_vlan()
|
/Zephyr-latest/subsys/net/ip/ |
D | canbus_socket.c | 25 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(CANBUS_RAW)) { in net_canbus_socket_input()
|
/Zephyr-latest/tests/net/mgmt/src/ |
D | mgmt.c | 157 &NET_L2_GET_NAME(DUMMY)), in thrower_thread() 163 &NET_L2_GET_NAME(DUMMY))); in thrower_thread() 252 net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)), in test_synchronous_event_listener() 350 net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)), in _iface_ip6_add() 361 net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)), in _iface_ip6_del()
|
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | vlan.c | 24 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 108 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(ETHERNET)); in init_vlan()
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | vlan.c | 25 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET) && ud->eth == NULL) { in iface_cb() 30 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | vlan.c | 24 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 102 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(ETHERNET)); in init_vlan()
|
/Zephyr-latest/samples/net/vlan/src/ |
D | main.c | 27 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 119 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(ETHERNET)); in init_app()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | bridge.c | 55 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 97 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET) || in eth_bridge_iface_add() 102 if (net_if_l2(br) != &NET_L2_GET_NAME(VIRTUAL) || in eth_bridge_iface_add() 174 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in eth_bridge_iface_remove() 178 if (net_if_l2(br) != &NET_L2_GET_NAME(VIRTUAL) || in eth_bridge_iface_remove()
|
D | ethernet_stats.c | 29 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in eth_stats_get()
|
D | vlan.c | 181 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in get_vlan() 188 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in get_vlan() 342 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_eth_is_vlan_interface() 394 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in net_eth_vlan_enable() 471 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET) && in net_eth_vlan_disable() 472 net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in net_eth_vlan_disable()
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | ppp_stats.c | 29 if (net_if_l2(iface) != &NET_L2_GET_NAME(PPP)) { in ppp_stats_get()
|
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/ |
D | main.c | 103 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_setup() 117 struct net_if *iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in ZTEST()
|
/Zephyr-latest/tests/net/vlan/src/ |
D | main.c | 337 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface2str() 343 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface2str() 359 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb() 373 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 380 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface_cb() 725 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_vlan_enable_all() 728 zassert_equal(net_if_l2(iface), &NET_L2_GET_NAME(DUMMY), in test_vlan_enable_all() 764 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_vlan_disable_all() 767 zassert_equal(net_if_l2(iface), &NET_L2_GET_NAME(DUMMY), in test_vlan_disable_all()
|
/Zephyr-latest/samples/net/lldp/src/ |
D | main.c | 45 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 197 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(ETHERNET)); in init_app()
|
/Zephyr-latest/tests/net/pm/src/ |
D | main.c | 110 iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_setup() 122 net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in ZTEST()
|
/Zephyr-latest/tests/net/route/src/ |
D | main.c | 244 my_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)); in test_init() 245 peer_iface = net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)) + 1; in test_init() 348 nbr = net_ipv6_nbr_add(net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)), in test_populate_nbr_cache() 357 nbr = net_ipv6_nbr_add(net_if_get_first_by_type(&NET_L2_GET_NAME(DUMMY)), in test_populate_nbr_cache()
|
/Zephyr-latest/subsys/net/l2/ethernet/dsa/ |
D | dsa.c | 38 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in dsa_is_port_master() 61 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in dsa_check_iface()
|
/Zephyr-latest/tests/net/promiscuous/src/ |
D | main.c | 158 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface2str() 162 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface2str() 177 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb()
|