/Zephyr-latest/subsys/net/lib/shell/ |
D | capture.c | 189 int ret, arg = 1, if_index; in cmd_net_capture_enable() local 202 if_index = atoi(argv[arg++]); in cmd_net_capture_enable() 203 if (if_index == 0) { in cmd_net_capture_enable() 204 PR_WARNING("Interface index %d is invalid.\n", if_index); in cmd_net_capture_enable() 208 iface = net_if_get_by_index(if_index); in cmd_net_capture_enable() 210 PR_WARNING("No such interface with index %d\n", if_index); in cmd_net_capture_enable()
|
D | dns.c | 85 if (ctx->servers[i].if_index > 0) { in print_dns_info() 87 net_if_get_by_index(ctx->servers[i].if_index), in print_dns_info() 91 ctx->servers[i].if_index); in print_dns_info()
|
/Zephyr-latest/include/zephyr/posix/net/ |
D | if.h | 20 unsigned int if_index; member
|
/Zephyr-latest/tests/posix/net/src/ |
D | if.c | 57 zassert_equal(i + 1, ni[i].if_index); in ZTEST() 60 zassert_equal(0, ni[n].if_index); in ZTEST()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | net_if_h.c | 22 zassert_not_equal(-1, offsetof(struct if_nameindex, if_index)); in ZTEST()
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_top.h | 646 static inline void ctf_top_net_recv_data_enter(int32_t if_index, uint32_t iface, uint32_t pkt, in ctf_top_net_recv_data_enter() argument 650 if_index, iface, pkt, len); in ctf_top_net_recv_data_enter() 653 static inline void ctf_top_net_recv_data_exit(int32_t if_index, uint32_t iface, uint32_t pkt, in ctf_top_net_recv_data_exit() argument 657 if_index, iface, pkt, ret); in ctf_top_net_recv_data_exit() 660 static inline void ctf_top_net_send_data_enter(int32_t if_index, uint32_t iface, uint32_t pkt, in ctf_top_net_send_data_enter() argument 664 if_index, iface, pkt, len); in ctf_top_net_send_data_enter() 667 static inline void ctf_top_net_send_data_exit(int32_t if_index, uint32_t iface, uint32_t pkt, in ctf_top_net_send_data_exit() argument 671 if_index, iface, pkt, ret); in ctf_top_net_send_data_exit() 674 static inline void ctf_top_net_rx_time(int32_t if_index, uint32_t iface, uint32_t pkt, in ctf_top_net_rx_time() argument 678 if_index, iface, pkt, priority, tc, duration); in ctf_top_net_rx_time() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6.c | 863 static int gen_stable_iid(uint8_t if_index, in gen_stable_iid() argument 879 uint8_t if_index; in gen_stable_iid() member 893 buf.if_index = if_index; in gen_stable_iid() 958 uint8_t if_index; in net_ipv6_addr_generate_iid() local 960 if_index = (iface == NULL) ? net_if_get_by_iface(net_if_get_default()) in net_ipv6_addr_generate_iid() 976 ret = gen_stable_iid(if_index, &tmp_prefix, network_id, network_id_len, in net_ipv6_addr_generate_iid() 1031 if_index, net_sprint_ipv6_addr(&tmp_addr)); in net_ipv6_addr_generate_iid()
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | main.c | 527 int ret, if_index; in main() local 579 if_index = net_if_get_by_iface(iface); in main() 592 peer_data.clk = net_eth_get_ptp_clock_by_index(if_index); in main() 614 if_index, iface, peer_data.clk); in main() 620 if_index, iface, peer_data.clk); in main()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | resolve.c | 323 static int bind_to_iface(int sock, const struct sockaddr *addr, int if_index) in bind_to_iface() argument 328 ret = net_if_get_name(net_if_get_by_index(if_index), ifreq.ifr_name, in bind_to_iface() 331 LOG_DBG("Cannot get interface name for %d (%d)", if_index, ret); in bind_to_iface() 342 if_index, ret); in bind_to_iface() 409 ctx->servers[idx].if_index = 0; in dns_resolve_init_locked() 412 ctx->servers[idx].if_index = in dns_resolve_init_locked() 418 ctx->servers[idx].if_index = 0; in dns_resolve_init_locked() 503 if (ctx->servers[i].if_index > 0) { in dns_resolve_init_locked() 506 ctx->servers[i].if_index); in dns_resolve_init_locked() 513 iface = net_if_get_by_index(ctx->servers[i].if_index); in dns_resolve_init_locked() [all …]
|
/Zephyr-latest/subsys/tracing/ctf/tsdl/ |
D | metadata | 715 int32_t if_index; 726 int32_t if_index; 737 int32_t if_index; 748 int32_t if_index; 759 int32_t if_index; 772 int32_t if_index;
|
/Zephyr-latest/lib/posix/options/ |
D | net.c | 145 ni[i].if_index = i + 1; in if_nameindex() 156 ni[n].if_index = 0; in if_nameindex()
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_shell.c | 2554 mode->if_index = (uint8_t)atoi(state->optarg); in parse_mode_args_to_params() 2586 if (mode_info.if_index == 0) { in cmd_wifi_mode() 2592 mode_info.if_index = net_if_get_by_iface(iface); in cmd_wifi_mode() 2594 iface = net_if_get_by_index(mode_info.if_index); in cmd_wifi_mode() 2597 mode_info.if_index); in cmd_wifi_mode() 2641 channel->if_index = (uint8_t)atoi(state->optarg); in parse_channel_args_to_params() 2675 if (channel_info.if_index == 0) { in cmd_wifi_channel() 2681 channel_info.if_index = net_if_get_by_iface(iface); in cmd_wifi_channel() 2683 iface = net_if_get_by_index(channel_info.if_index); in cmd_wifi_channel() 2686 channel_info.if_index); in cmd_wifi_channel() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | dns_resolve.h | 350 int if_index; member
|
D | wifi_mgmt.h | 993 uint8_t if_index; member 1003 uint8_t if_index; member 1015 uint8_t if_index; member
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | net_if.c | 803 vif_info.if_index = vif_ctx_zep->vif_idx; in nrf_wifi_if_start_zep() 910 vif_info.if_index = vif_ctx_zep->vif_idx; in nrf_wifi_if_stop_zep()
|
D | wpa_supp_if.c | 1991 vif_state_info.if_index = vif_ctx_zep->vif_idx; in nrf_wifi_vif_state_change()
|