Home
last modified time | relevance | path

Searched refs:NET_L2_GET_NAME (Results 1 – 25 of 80) sorted by relevance

1234

/Zephyr-latest/subsys/net/lib/shell/
Dnet_shell.c136 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()
Dvlan.c53 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()
Diface.c239 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/
Dmain.c76 &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/
Dnet_l2.h93 #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/
Dmain.c191 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/
Dvirtual.c136 &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/
Dvlan.c24 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/
Dcanbus_socket.c25 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/
Dmgmt.c157 &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/
Dvlan.c24 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/
Dvlan.c25 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/
Dvlan.c24 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/
Dmain.c27 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/
Dbridge.c55 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()
Dethernet_stats.c29 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in eth_stats_get()
Dvlan.c181 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/
Dppp_stats.c29 if (net_if_l2(iface) != &NET_L2_GET_NAME(PPP)) { in ppp_stats_get()
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c103 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/
Dmain.c337 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/
Dmain.c45 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/
Dmain.c110 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/
Dmain.c244 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/
Ddsa.c38 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/
Dmain.c158 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()

1234