/Zephyr-latest/drivers/ethernet/ |
D | eth_native_posix_priv.h | 14 int eth_iface_create(const char *dev_name, const char *if_name, bool tun_only); 18 int eth_promisc_mode(const char *if_name, bool enable);
|
D | eth_native_posix_adapt.c | 41 int eth_iface_create(const char *dev_name, const char *if_name, bool tun_only) in eth_iface_create() argument 56 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in eth_iface_create() 135 int eth_promisc_mode(const char *if_name, bool enable) in eth_promisc_mode() argument 138 if_name, enable ? "on" : "off"); in eth_promisc_mode()
|
D | eth_native_posix.c | 57 const char *if_name; member 291 ctx->if_name); in create_rx_handler() 347 ctx->if_name = CONFIG_ETH_NATIVE_POSIX_DRV_NAME; in eth_iface_init() 351 ctx->if_name = if_name_cmd_opt; in eth_iface_init() 354 LOG_DBG("Interface %p using \"%s\"", iface, ctx->if_name); in eth_iface_init() 359 ctx->dev_fd = eth_iface_create(CONFIG_ETH_NATIVE_POSIX_DEV_NAME, ctx->if_name, false); in eth_iface_init() 361 LOG_ERR("Cannot create %s (%d/%s)", ctx->if_name, ctx->dev_fd, in eth_iface_init() 435 ret = eth_promisc_mode(context->if_name, in set_config() 481 .if_name = CONFIG_ETH_NATIVE_POSIX_DRV_NAME #x, \
|
/Zephyr-latest/tests/posix/net/src/ |
D | if.c | 58 zassert_not_null(ni[i].if_name); in ZTEST() 59 TC_PRINT("interface %zu: %s\n", i + 1, ni[i].if_name); in ZTEST() 61 zassert_is_null(ni[n].if_name); in ZTEST()
|
/Zephyr-latest/drivers/can/ |
D | can_native_linux.c | 48 const char *if_name; member 452 const char *if_name; in can_native_linux_init() local 458 if_name = if_name_cmd_opt; in can_native_linux_init() 460 if_name = cfg->if_name; in can_native_linux_init() 463 LOG_DBG("Opening %s", if_name); in can_native_linux_init() 464 data->dev_fd = linux_socketcan_iface_open(if_name); in can_native_linux_init() 466 LOG_ERR("Cannot open %s (%d)", if_name, data->dev_fd); in can_native_linux_init() 485 .if_name = DT_INST_PROP(inst, host_interface), \
|
D | can_native_linux_adapt.h | 14 int linux_socketcan_iface_open(const char *if_name);
|
D | can_native_linux_adapt.c | 44 int linux_socketcan_iface_open(const char *if_name) in linux_socketcan_iface_open() argument 58 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in linux_socketcan_iface_open()
|
/Zephyr-latest/include/zephyr/net/ |
D | zperf.h | 43 char if_name[IFNAMSIZ]; member 55 char if_name[IFNAMSIZ]; member
|
/Zephyr-latest/lib/posix/options/ |
D | net.c | 123 if (ptr[i].if_name != NULL) { in if_freenameindex() 124 free(ptr[i].if_name); in if_freenameindex() 147 ni[i].if_name = malloc(IF_NAMESIZE); in if_nameindex() 148 if (ni[i].if_name == NULL) { in if_nameindex() 152 name = if_indextoname(i + 1, ni[i].if_name); in if_nameindex() 157 ni[n].if_name = NULL; in if_nameindex()
|
/Zephyr-latest/include/zephyr/posix/net/ |
D | if.h | 21 char *if_name; member
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_receiver.c | 234 static void zperf_udp_join_mcast_ipv4(char *if_name, struct in_addr *addr) in zperf_udp_join_mcast_ipv4() argument 238 if (if_name[0]) { in zperf_udp_join_mcast_ipv4() 239 iface = net_if_get_by_index(net_if_get_by_name(if_name)); in zperf_udp_join_mcast_ipv4() 252 static void zperf_udp_join_mcast_ipv6(char *if_name, struct in6_addr *addr) in zperf_udp_join_mcast_ipv6() argument 256 if (if_name[0]) { in zperf_udp_join_mcast_ipv6() 257 iface = net_if_get_by_index(net_if_get_by_name(if_name)); in zperf_udp_join_mcast_ipv6() 530 if (param->if_name[0]) { in zperf_udp_download() 536 strncpy(udp_server_iface_name, param->if_name, IFNAMSIZ); in zperf_udp_download()
|
D | zperf_udp_uploader.c | 313 if (param->if_name[0]) { in zperf_udp_upload() 315 strncpy(req.ifr_name, param->if_name, IFNAMSIZ); in zperf_udp_upload()
|
D | zperf_shell.c | 401 (void)memset(param->if_name, 0x0, IFNAMSIZ); in shell_cmd_download() 402 strncpy(param->if_name, argv[i], IFNAMSIZ - 1); in shell_cmd_download() 905 (void)memset(param.if_name, 0x0, IFNAMSIZ); in shell_cmd_upload() 906 strncpy(param.if_name, argv[i], IFNAMSIZ - 1); in shell_cmd_upload() 1138 (void)memset(param.if_name, 0x0, IFNAMSIZ); in shell_cmd_upload2() 1139 strncpy(param.if_name, argv[i], IFNAMSIZ - 1); in shell_cmd_upload2()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | net_if_h.c | 23 zassert_not_equal(-1, offsetof(struct if_nameindex, if_name)); in ZTEST()
|
/Zephyr-latest/samples/net/dsa/src/ |
D | main.h | 37 char *if_name; member 91 data.if_name = "lan"#ID; \
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_main.c | 137 char if_name[CONFIG_NET_INTERFACE_NAME_LEN + 1]; member 334 net_if_get_name(iface, ctx->if_name, CONFIG_NET_INTERFACE_NAME_LEN); in add_interface() 968 const char *if_name, in hostapd_interface_init() argument 981 if (if_name) { in hostapd_interface_init() 982 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init() 1192 supplicant_generate_state_event(ctx->if_name, NET_EVENT_SUPPLICANT_CMD_NOT_READY, 0); in handler()
|
D | supp_api.c | 101 char if_name[CONFIG_NET_INTERFACE_NAME_LEN + 1]; in get_wpa_s_handle() local 110 ret = net_if_get_name(iface, if_name, sizeof(if_name)); in get_wpa_s_handle() 116 wpa_s = zephyr_get_handle_by_ifname(if_name); in get_wpa_s_handle() 118 wpa_printf(MSG_ERROR, "Interface %s not found", if_name); in get_wpa_s_handle() 144 char if_name[CONFIG_NET_INTERFACE_NAME_LEN + 1]; in get_hostapd_handle() local 153 ret = net_if_get_name(iface, if_name, sizeof(if_name)); in get_hostapd_handle() 159 hapd = zephyr_get_hapd_handle_by_ifname(if_name); in get_hostapd_handle() 161 wpa_printf(MSG_ERROR, "Interface %s not found", if_name); in get_hostapd_handle()
|