/Zephyr-latest/samples/net/capture/src/ |
D | main.c | 231 int ifindex; in init_app() local 233 ifindex = net_if_get_by_name(COOKED_MODE_INTERFACE_NAME); in init_app() 234 if (ifindex < 0) { in init_app() 239 ret = net_capture_enable(capture_dev, net_if_get_by_index(ifindex)); in init_app() 242 ifindex, ret); in init_app() 257 net_if_get_by_index(ifindex), ¶ms, in init_app() 261 ifindex, ret); in init_app() 269 ret = net_if_up(net_if_get_by_index(ifindex)); in init_app() 271 LOG_ERR("Cannot take up interface %d (%d)", ifindex, ret); in init_app()
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_top.c | 661 int ifindex; in sys_trace_net_send_data_enter() local 665 ifindex = -1; in sys_trace_net_send_data_enter() 667 ifindex = net_if_get_by_iface(iface); in sys_trace_net_send_data_enter() 670 ctf_top_net_send_data_enter((int32_t)ifindex, in sys_trace_net_send_data_enter() 679 int ifindex; in sys_trace_net_send_data_exit() local 683 ifindex = -1; in sys_trace_net_send_data_exit() 685 ifindex = net_if_get_by_iface(iface); in sys_trace_net_send_data_exit() 688 ctf_top_net_send_data_exit((int32_t)ifindex, in sys_trace_net_send_data_exit() 697 int ifindex; in sys_trace_net_rx_time() local 704 ifindex = -1; in sys_trace_net_rx_time() [all …]
|
/Zephyr-latest/include/zephyr/posix/net/ |
D | if.h | 24 char *if_indextoname(unsigned int ifindex, char *ifname);
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | cooked.c | 56 int ifindex; in iface_init() local 59 ifindex = net_if_get_by_name("any"); in iface_init() 60 if (ifindex < 0) { in iface_init() 66 if (net_if_l2(net_if_get_by_index(ifindex)) != &NET_L2_GET_NAME(DUMMY)) { in iface_init() 67 NET_DBG("The \"any\" interface %d is wrong type", ifindex); in iface_init() 76 any_iface = net_if_get_by_index(ifindex); in iface_init()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | mdns_responder.c | 688 int ifindex, in register_dispatcher() argument 700 ctx->dispatcher.ifindex = ifindex; in register_dispatcher() 724 int ret, ok = 0, ifindex; in init_listener() local 775 ifindex = net_if_get_by_iface(iface); in init_listener() 780 ifindex, ret); in init_listener() 789 v6, ifindex, ret); in init_listener() 819 ifindex, ipv6_fds, ARRAY_SIZE(ipv6_fds)); in init_listener() 868 ifindex = net_if_get_by_iface(iface); in init_listener() 873 ifindex, ret); in init_listener() 882 v4, ifindex, ret); in init_listener() [all …]
|
D | dispatcher.c | 218 ctx->ifindex == entry->ifindex) { in dns_dispatcher_register()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv4_acd.c | 96 struct net_if *iface = net_if_get_by_index(ifaddr->ifindex); in ipv4_acd_send_probe() 113 struct net_if *iface = net_if_get_by_index(ifaddr->ifindex); in ipv4_acd_send_announcement() 179 net_if_ipv4_acd_succeeded(net_if_get_by_index(ifaddr->ifindex), in ipv4_acd_manage_timeout() 277 struct net_if *addr_iface = net_if_get_by_index(ifaddr->ifindex); in net_ipv4_acd_input() 393 ifaddr->ifindex = net_if_get_by_iface(iface); in net_ipv4_acd_start()
|
D | net_private.h | 65 extern struct net_if_addr *net_if_ipv4_addr_get_first_by_index(int ifindex);
|
D | net_if.c | 1264 ifaddr->ifindex); in dad_timeout() 1267 iface = net_if_get_by_index(ifaddr->ifindex); in dad_timeout() 1298 ifaddr->ifindex = net_if_get_by_iface(iface); in net_if_ipv6_start_dad() 3753 struct net_if_addr *net_if_ipv4_addr_get_first_by_index(int ifindex) in net_if_ipv4_addr_get_first_by_index() argument 3755 struct net_if *iface = net_if_get_by_index(ifindex); in net_if_ipv4_addr_get_first_by_index() 4189 ifaddr->ifindex); in net_if_ipv4_acd_succeeded() 4206 ifaddr->ifindex); in net_if_ipv4_acd_failed()
|
D | net_context.c | 1971 int ifindex; in get_context_mcast_ifindex() local 1989 ifindex = net_if_get_by_iface(iface); in get_context_mcast_ifindex() 1990 if (ifindex < 1) { in get_context_mcast_ifindex() 1994 *((int *)value) = ifindex; in get_context_mcast_ifindex()
|
/Zephyr-latest/lib/posix/options/ |
D | net.c | 99 char *if_indextoname(unsigned int ifindex, char *ifname) in if_indextoname() argument 103 ret = net_if_get_name(net_if_get_by_index(ifindex), ifname, IF_NAMESIZE); in if_indextoname()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_inet.c | 1619 int ifindex, ret; in ipv4_multicast_if() local 1623 size_t len = sizeof(ifindex); in ipv4_multicast_if() 1631 &ifindex, &len); in ipv4_multicast_if() 1637 if (ifindex == 0) { in ipv4_multicast_if() 1643 ifaddr = net_if_ipv4_addr_get_first_by_index(ifindex); in ipv4_multicast_if() 1693 ifindex = 0; in ipv4_multicast_if() 1695 ifindex = net_if_get_by_iface(iface); in ipv4_multicast_if() 1699 &ifindex, sizeof(ifindex)); in ipv4_multicast_if() 2098 int ifindex, ret; in ipv4_multicast_group() local 2115 ifindex = net_if_ipv4_addr_lookup_by_index(&mreqn->imr_address); in ipv4_multicast_group() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | dns_resolve.h | 206 int ifindex; member
|
D | net_if.h | 122 uint8_t ifindex; member
|
/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 1718 int ifindex = 0; in run_ancillary_recvmsg_test() local 1818 ifindex = ((struct in_pktinfo *)CMSG_DATA(cmsg))->ipi_ifindex; in run_ancillary_recvmsg_test() 1826 ifindex = ((struct in6_pktinfo *)CMSG_DATA(cmsg))->ipi6_ifindex; in run_ancillary_recvmsg_test() 1846 zassert_equal(ifindex, net_if_get_by_iface(iface)); in run_ancillary_recvmsg_test() 2551 int ifindex; in ZTEST() local 2587 ifindex = net_if_get_by_iface(net_if_get_default()); in ZTEST() 2588 zexpect_equal(optval, ifindex, in ZTEST() 2590 ifindex, optval); in ZTEST() 2696 int ifindex; in ZTEST() local 2731 ifindex = net_if_get_by_iface(net_if_get_default()); in ZTEST() [all …]
|