Home
last modified time | relevance | path

Searched refs:net_if_l2 (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-latest/tests/net/ieee802154/custom_l2/src/
Dmain.c78 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
79 zassert_not_null(net_if_l2(iface)->send, "No send() found"); in ZTEST()
102 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
103 zassert_not_null(net_if_l2(iface)->recv, "No recv () found"); in ZTEST()
125 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
126 zassert_not_null(net_if_l2(iface)->enable, "No enable() found"); in ZTEST()
142 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST()
143 zassert_not_null(net_if_l2(iface)->get_flags, "No get_flags() found"); in ZTEST()
145 flags = net_if_l2(iface)->get_flags(iface); in ZTEST()
/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()
Dppp.c151 if (net_if_l2(iface) != &NET_L2_GET_NAME(PPP)) { in set_iface_ppp_index_buffer()
173 if (net_if_l2(iface) != &NET_L2_GET_NAME(PPP)) { in set_iface_ppp_index_help()
/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/dummy/any/
Dany.c61 if (net_if_l2(ctx->virtual_iface)->recv == NULL) { in any_recv()
68 verdict = net_if_l2(ctx->virtual_iface)->recv(iface, pkt); in any_recv()
/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual.c135 if (net_if_l2(ctx->iface) != 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/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()
Dnet_core.c234 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(DUMMY)) { in check_ip()
307 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(DUMMY)) { in check_ip()
447 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in net_rx()
/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/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()
Dethernet.c204 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in ethernet_mcast_monitor_cb()
297 if (net_if_l2(net_pkt_iface(pkt)) == NULL) { in ethernet_recv()
305 if (net_if_l2(net_pkt_iface(pkt))->recv != NULL) { in ethernet_recv()
306 verdict = net_if_l2(net_pkt_iface(pkt))->recv(iface, pkt); in ethernet_recv()
526 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in get_reserve_ll_header_size()
532 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in get_reserve_ll_header_size()
951 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in net_eth_get_phy()
972 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in net_eth_get_ptp_clock()
/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/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()
/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()
728 zassert_equal(net_if_l2(iface), &NET_L2_GET_NAME(DUMMY), in test_vlan_enable_all()
767 zassert_equal(net_if_l2(iface), &NET_L2_GET_NAME(DUMMY), in test_vlan_disable_all()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dvlan.c24 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()
/Zephyr-latest/samples/net/dsa/src/
Dmain.c18 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in iface_cb()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c281 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface2str()
285 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface2str()
289 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface2str()
312 (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL))) { in iface_cb()
319 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb()
336 if (net_if_l2(iface) == &NET_L2_GET_NAME(DUMMY)) { in iface_cb()
343 if (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()
/Zephyr-latest/samples/net/mdns_responder/src/
Dvlan.c24 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()
/Zephyr-latest/samples/net/vlan/src/
Dmain.c27 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()

123