Home
last modified time | relevance | path

Searched refs:net_if_get_by_iface (Results 1 – 25 of 90) sorted by relevance

1234

/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual.c45 net_if_get_by_iface(ctx->virtual_iface)); in virtual_recv()
89 net_if_get_by_iface(iface)); in virtual_send()
141 NET_DBG("Taking iface %d up", net_if_get_by_iface(ctx->iface)); in virtual_enable()
199 if (net_if_get_by_iface(virtual_iface) < 0 || in net_virtual_interface_attach()
200 (iface != NULL && net_if_get_by_iface(iface) < 0)) { in net_virtual_interface_attach()
229 net_if_get_by_iface(virtual_iface), in net_virtual_interface_attach()
230 net_if_get_by_iface(ctx->iface)); in net_virtual_interface_attach()
246 net_if_get_by_iface(virtual_iface), in net_virtual_interface_attach()
247 net_if_get_by_iface(ctx->iface)); in net_virtual_interface_attach()
283 if (net_if_get_by_iface(iface) < 0) { in net_virtual_disable()
[all …]
/Zephyr-latest/tests/net/virtual/src/
Dmain.c317 net_if_get_by_iface(iface)); in iface_cb()
562 net_if_get_by_iface(iface), in ZTEST()
563 net_if_get_by_iface(eth_interfaces[0]), in ZTEST()
568 net_if_get_by_iface(iface)); in ZTEST()
572 net_if_get_by_iface(iface), ret); in ZTEST()
577 net_if_get_by_iface(iface), in ZTEST()
578 net_if_get_by_iface(eth_interfaces[0]), in ZTEST()
582 net_if_get_by_iface(iface)); in ZTEST()
594 net_if_get_by_iface(iface), in ZTEST()
595 net_if_get_by_iface(eth_interfaces[0]), in ZTEST()
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/
Dbridge.c81 return net_if_get_by_iface(br); in eth_bridge_get_index()
145 net_if_get_by_iface(iface), ret); in eth_bridge_iface_add()
151 NET_DBG("iface %d added to bridge %d", net_if_get_by_iface(iface), in eth_bridge_iface_add()
152 net_if_get_by_iface(br)); in eth_bridge_iface_add()
157 NET_INFO("Bridge %d is %ssetup", net_if_get_by_iface(eth_ctx->bridge), ""); in eth_bridge_iface_add()
204 NET_DBG("iface %d removed from bridge %d", net_if_get_by_iface(iface), in eth_bridge_iface_remove()
205 net_if_get_by_iface(br)); in eth_bridge_iface_remove()
210 NET_INFO("Bridge %d is %ssetup", net_if_get_by_iface(br), "not "); in eth_bridge_iface_remove()
294 net_if_get_by_iface(ctx->iface)); in bridge_iface_start()
304 NET_DBG("Starting iface %d", net_if_get_by_iface(ctx->iface)); in bridge_iface_start()
[all …]
Dvlan.c238 int iface_idx = net_if_get_by_iface(iface); in enable_vlan_iface()
249 net_if_get_by_iface(ctx->iface), in enable_vlan_iface()
250 net_if_get_by_iface(ctx->attached_to)); in enable_vlan_iface()
260 net_if_get_by_iface(ctx->attached_to)); in enable_vlan_iface()
269 int iface_idx = net_if_get_by_iface(iface); in disable_vlan_iface()
290 int iface_idx = net_if_get_by_iface(iface); in is_vlan_enabled_for_iface()
400 net_if_get_by_iface(iface)); in net_eth_vlan_enable()
442 i, vlan->tag, net_if_get_by_iface(vlan->iface), vlan->iface, in net_eth_vlan_enable()
443 net_if_get_by_iface(iface), iface); in net_eth_vlan_enable()
490 vlan->tag, net_if_get_by_iface(vlan->iface), vlan->iface, in net_eth_vlan_disable()
[all …]
Dethernet.c91 net_if_get_by_iface(net_pkt_iface(pkt)), \
109 net_if_get_by_iface(net_pkt_iface(pkt)), \
270 out_pkt, pkt, net_if_get_by_iface(bridge), in ethernet_recv()
271 net_if_get_by_iface(iface)); in ethernet_recv()
347 net_if_get_by_iface(iface), iface); in ethernet_recv()
483 arp_pkt, pkt, net_if_get_by_iface(iface), iface); in ethernet_ll_prepare_on_ipv4()
489 pkt, net_if_get_by_iface(iface), iface); in ethernet_ll_prepare_on_ipv4()
806 out_pkt, pkt, net_if_get_by_iface(bridge), in ethernet_send()
807 net_if_get_by_iface(iface)); in ethernet_send()
1094 net_if_get_by_iface(iface), iface); in ethernet_init()
/Zephyr-latest/samples/net/dhcpv4_client/src/
Dmain.c36 net_if_get_by_iface(iface)); in start_dhcpv4_client()
58 LOG_INF(" Address[%d]: %s", net_if_get_by_iface(iface), in handler()
62 LOG_INF(" Subnet[%d]: %s", net_if_get_by_iface(iface), in handler()
66 LOG_INF(" Router[%d]: %s", net_if_get_by_iface(iface), in handler()
70 LOG_INF("Lease time[%d]: %u seconds", net_if_get_by_iface(iface), in handler()
/Zephyr-latest/subsys/net/conn_mgr/
Devents_handler.c28 net_if_get_by_iface(iface), iface); in conn_mgr_iface_events_handler()
34 idx = net_if_get_by_iface(iface) - 1; in conn_mgr_iface_events_handler()
64 net_if_get_by_iface(iface), iface); in conn_mgr_ipv6_events_handler()
70 idx = net_if_get_by_iface(iface) - 1; in conn_mgr_ipv6_events_handler()
121 net_if_get_by_iface(iface), iface); in conn_mgr_ipv4_events_handler()
127 idx = net_if_get_by_iface(iface) - 1; in conn_mgr_ipv4_events_handler()
Dconn_mgr_connectivity.c350 net_if_get_by_iface(iface), iface, *((int *)cb->info) in conn_mgr_conn_self_handler()
354 net_if_get_by_iface(iface), iface in conn_mgr_conn_self_handler()
487 net_if_get_by_iface(iface), iface, status in conn_mgr_conn_all_if_cb()
/Zephyr-latest/samples/net/virtual/src/
Dmain.c92 LOG_DBG("Starting iface %d", net_if_get_by_iface(ctx->iface)); in virtual_test_interface_start()
111 LOG_DBG("Stopping iface %d", net_if_get_by_iface(ctx->iface)); in virtual_test_interface_stop()
147 net_if_get_by_iface(virtual_iface), virtual_iface, in virtual_test_interface_attach()
148 net_if_get_by_iface(iface), iface); in virtual_test_interface_attach()
272 net_if_get_by_iface(iface), in setup_iface()
283 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
334 net_if_get_by_iface(iface), in setup_iface()
346 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface()
368 net_if_get_by_iface(ud.my_iface), in main()
372 net_if_get_by_iface(ud.ip_tunnel_1), in main()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dvlan.c35 net_if_get_by_iface(iface), in iface_vlan_del_cb()
43 net_if_get_by_iface(iface), iface); in iface_vlan_del_cb()
67 PR("[%d] %p %-12s\t%d\t%d\n", net_if_get_by_iface(iface), iface, in iface_vlan_cb()
69 net_if_get_by_iface(net_eth_get_vlan_main(iface))); in iface_vlan_cb()
134 net_if_get_by_iface(iface), iface); in cmd_net_vlan_add()
152 net_if_get_by_iface(iface), iface); in cmd_net_vlan_add()
Dvirtual.c42 net_if_get_by_iface(iface), in virtual_iface_cb()
43 orig_iface ? net_if_get_by_iface(orig_iface) + '0' : '-', in virtual_iface_cb()
67 PR("%d ", net_if_get_by_iface(iface)); in attached_iface_cb()
75 PR("%d ", net_if_get_by_iface(ctx->virtual_iface)); in attached_iface_cb()
Dwebsocket.c49 net_if_get_by_iface(net_context_get_iface(net_ctx)), in websocket_context_cb()
Darp.c29 net_if_get_by_iface(entry->iface), in arp_cb()
/Zephyr-latest/subsys/net/l2/virtual/ipip/
Dipip.c101 NET_DBG("Starting iface %d", net_if_get_by_iface(ctx->iface)); in interface_start()
116 NET_DBG("Stopping iface %d", net_if_get_by_iface(ctx->iface)); in interface_stop()
213 net_if_get_by_iface(ctx->attached_to)); in interface_send()
254 net_if_get_by_iface(net_pkt_iface(pkt))); in interface_send()
332 net_if_get_by_iface(iface)); in interface_recv()
362 net_if_get_by_iface(iface_test), iface_test, in interface_recv()
363 net_if_get_by_iface(iface), iface); in interface_recv()
402 net_if_get_by_iface(iface_test), iface_test, in interface_recv()
403 net_if_get_by_iface(iface), iface); in interface_recv()
434 if (net_if_get_by_iface(iface) < 0) { in interface_attach()
[all …]
/Zephyr-latest/tests/boards/espressif/ethernet/src/
Dmain.c43 LOG_INF("Address[%d]: %s", net_if_get_by_iface(iface), in ipv4_event()
46 LOG_INF("Subnet[%d]: %s", net_if_get_by_iface(iface), in ipv4_event()
49 LOG_INF("Router[%d]: %s", net_if_get_by_iface(iface), in ipv4_event()
51 LOG_INF("Lease time[%d]: %u seconds", net_if_get_by_iface(iface), in ipv4_event()
139 net_if_get_by_iface(iface)); in ethernet_setup()
/Zephyr-latest/subsys/net/lib/capture/
Dcooked.c62 net_if_get_by_iface(iface)); in iface_init()
93 net_if_get_by_iface(any_iface), ret); in iface_init()
98 net_if_get_by_iface(ctx->iface), in iface_init()
99 net_if_get_by_iface(any_iface)); in iface_init()
124 NET_DBG("Starting iface %d", net_if_get_by_iface(ctx->iface)); in interface_start()
139 NET_DBG("Stopping iface %d", net_if_get_by_iface(ctx->iface)); in interface_stop()
157 NET_DBG("Capture pkt %p for interface %d", pkt, net_if_get_by_iface(iface)); in interface_recv()
193 if (net_if_get_by_iface(iface) < 0) { in interface_attach()
232 net_if_get_by_iface(iface), config->mtu); in interface_set_config()
337 hdr2.sll2_if_index = net_if_get_by_iface(iface); in create_sll_header()
Dcapture.c214 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
230 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
258 net_if_get_by_iface(iface)); in cleanup_iface()
269 net_if_get_by_iface(iface)); in cleanup_iface()
368 remote_addr, net_if_get_by_iface(ipip_iface), ret); in net_capture_setup()
378 net_if_get_by_iface(ipip_iface), params.mtu, ret); in net_capture_setup()
425 net_if_get_by_iface(ipip_iface), in net_capture_setup()
426 net_if_get_by_iface(remote_iface)); in net_capture_setup()
703 net_if_get_by_iface(net_pkt_iface(pkt))); in capture_send()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dtunnel.c62 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
73 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
150 net_if_get_by_iface(ud.tunnel), in init_tunnel()
160 net_if_get_by_iface(ud.tunnel), params.mtu, ret); in init_tunnel()
/Zephyr-latest/tests/net/bridge/src/
Dmain.c165 DBG("Interface %p [%d]\n", iface, net_if_get_by_iface(iface)); in iface_cb()
222 net_if_get_by_iface(fake_iface[0]), fake_iface[0], in test_iface_setup()
223 net_if_get_by_iface(fake_iface[1]), fake_iface[1], in test_iface_setup()
224 net_if_get_by_iface(fake_iface[2]), fake_iface[2]); in test_iface_setup()
259 eth_hdr.dst.addr[4] = net_if_get_by_iface(iface); in _recv_data()
265 eth_hdr.src.addr[3] = net_if_get_by_iface(iface); in _recv_data()
277 DBG("[%d] Fake recv pkt %p\n", net_if_get_by_iface(iface), pkt); in _recv_data()
327 int src_if_idx = net_if_get_by_iface(fake_iface[i]); in test_recv_with_bridge()
/Zephyr-latest/samples/boards/nxp/s32/netc/src/
Dmain.c27 LOG_INF("Configuring iface %d (%p)", net_if_get_by_iface(iface), iface); in setup_iface()
90 LOG_INF("Waiting for iface %d to come up", net_if_get_by_iface(iface)); in wait_for_iface()
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c175 net_if_get_by_iface(iface)); in iface_cb()
208 idx = net_if_get_by_iface(iface1); in test_iface_setup()
212 idx = net_if_get_by_iface(iface2); in test_iface_setup()
220 net_if_get_by_iface(iface1), iface1, in test_iface_setup()
221 net_if_get_by_iface(iface2), iface2); in test_iface_setup()
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c39 net_if_get_by_iface(net_pkt_iface(pkt))); in fake_dev_send()
126 dst.sll_ifindex = net_if_get_by_iface(iface); in ZTEST()
/Zephyr-latest/tests/net/iface/src/
Dmain.c129 net_if_get_by_iface(net_pkt_iface(pkt)), in sender_iface()
132 if (net_if_get_by_iface(net_pkt_iface(pkt)) != data->idx) { in sender_iface()
134 data->idx, net_if_get_by_iface(net_pkt_iface(pkt))); in sender_iface()
295 net_if_get_by_iface(iface)); in iface_cb()
339 idx = net_if_get_by_iface(iface1); in iface_setup()
343 idx = net_if_get_by_iface(iface2); in iface_setup()
347 idx = net_if_get_by_iface(iface3); in iface_setup()
352 net_if_get_by_iface(iface1), iface1, in iface_setup()
353 net_if_get_by_iface(iface2), iface2, in iface_setup()
354 net_if_get_by_iface(iface3), iface3); in iface_setup()
[all …]
/Zephyr-latest/samples/net/sockets/packet/src/
Dpacket.c76 dst.sll_ifindex = net_if_get_by_iface(net_if_get_default()); in start_socket()
157 dst.sll_ifindex = net_if_get_by_iface(net_if_get_default()); in send_packet_socket()
/Zephyr-latest/tests/net/hostname/src/
Dmain.c228 net_if_get_by_iface(iface)); in iface_cb()
252 idx = net_if_get_by_iface(iface1); in test_iface_setup()
257 net_if_get_by_iface(iface1), iface1); in test_iface_setup()

1234