Home
last modified time | relevance | path

Searched refs:if_name (Results 1 – 25 of 40) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_ioctl.c19 int vlan_rem(const char *if_name) in vlan_rem() argument
24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); in vlan_rem()
25 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_rem()
27 if_name); in vlan_rem()
39 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1)); in vlan_rem()
44 "%s", __func__, if_name, strerror(errno)); in vlan_rem()
62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
68 if_name, vid); in vlan_add()
69 ifconfig_up(if_name); in vlan_add()
71 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_add()
[all …]
Dvlan_util.c24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); in vlan_add()
34 if ((os_strlen(if_name) + 1) > IFNAMSIZ) { in vlan_add()
36 if_name); in vlan_add()
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_add()
63 if_name); in vlan_add()
108 vlan_if_name, vid, if_name, if_idx, in vlan_add()
124 int vlan_rem(const char *if_name) in vlan_rem() argument
130 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(if_name=%s)", if_name); in vlan_rem()
145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_rem()
[all …]
Dvlan_ifconfig.c19 int ifconfig_helper(const char *if_name, int up) in ifconfig_helper() argument
31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ); in ifconfig_helper()
36 __func__, if_name, strerror(errno)); in ifconfig_helper()
49 __func__, if_name, up, strerror(errno)); in ifconfig_helper()
59 int ifconfig_up(const char *if_name) in ifconfig_up() argument
61 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name); in ifconfig_up()
62 return ifconfig_helper(if_name, 1); in ifconfig_up()
Dvlan_util.h16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
17 int vlan_rem(const char *if_name);
20 int ifconfig_helper(const char *if_name, int up);
21 int ifconfig_up(const char *if_name);
Dvlan_full.c120 static int ifconfig_down(const char *if_name) in ifconfig_down() argument
122 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name); in ifconfig_down()
123 return ifconfig_helper(if_name, 0); in ifconfig_down()
133 static int br_delif(const char *br_name, const char *if_name) in br_delif() argument
140 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name); in br_delif()
147 if (linux_br_del_if(fd, br_name, if_name) == 0) in br_delif()
150 if_index = if_nametoindex(if_name); in br_delif()
155 __func__, if_name); in br_delif()
170 "%s", __func__, br_name, if_name, strerror(errno)); in br_delif()
188 static int br_addif(const char *br_name, const char *if_name) in br_addif() argument
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_ioctl.c19 int vlan_rem(const char *if_name) in vlan_rem() argument
24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); in vlan_rem()
25 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_rem()
27 if_name); in vlan_rem()
39 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1)); in vlan_rem()
44 "%s", __func__, if_name, strerror(errno)); in vlan_rem()
62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
68 if_name, vid); in vlan_add()
69 ifconfig_up(if_name); in vlan_add()
71 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_add()
[all …]
Dvlan_util.c24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); in vlan_add()
34 if ((os_strlen(if_name) + 1) > IFNAMSIZ) { in vlan_add()
36 if_name); in vlan_add()
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_add()
63 if_name); in vlan_add()
108 vlan_if_name, vid, if_name, if_idx, in vlan_add()
124 int vlan_rem(const char *if_name) in vlan_rem() argument
130 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(if_name=%s)", if_name); in vlan_rem()
145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_rem()
[all …]
Dvlan_ifconfig.c19 int ifconfig_helper(const char *if_name, int up) in ifconfig_helper() argument
31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ); in ifconfig_helper()
36 __func__, if_name, strerror(errno)); in ifconfig_helper()
49 __func__, if_name, up, strerror(errno)); in ifconfig_helper()
59 int ifconfig_up(const char *if_name) in ifconfig_up() argument
61 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name); in ifconfig_up()
62 return ifconfig_helper(if_name, 1); in ifconfig_up()
Dvlan_util.h16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
17 int vlan_rem(const char *if_name);
20 int ifconfig_helper(const char *if_name, int up);
21 int ifconfig_up(const char *if_name);
Dvlan_full.c120 static int ifconfig_down(const char *if_name) in ifconfig_down() argument
122 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name); in ifconfig_down()
123 return ifconfig_helper(if_name, 0); in ifconfig_down()
133 static int br_delif(const char *br_name, const char *if_name) in br_delif() argument
140 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name); in br_delif()
147 if (linux_br_del_if(fd, br_name, if_name) == 0) in br_delif()
150 if_index = if_nametoindex(if_name); in br_delif()
155 __func__, if_name); in br_delif()
170 "%s", __func__, br_name, if_name, strerror(errno)); in br_delif()
188 static int br_addif(const char *br_name, const char *if_name) in br_addif() argument
[all …]
/third_party/ltp/testcases/network/lib6/
Din6_02.c170 if (!p || strcmp(p, pini[i].if_name)) { in if_nameindex_test()
173 pini[i].if_index, pini[i].if_name, in if_nameindex_test()
177 idx = if_nametoindex(pini[i].if_name); in if_nameindex_test()
181 pini[i].if_index, pini[i].if_name, in if_nameindex_test()
182 pini[i].if_name, idx); in if_nameindex_test()
186 pini[i].if_index, pini[i].if_name); in if_nameindex_test()
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dap_main.c260 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name, in hostapd_interface_init() argument
271 if (if_name) { in hostapd_interface_init()
272 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init()
563 char *if_name, *tmp, **nnames; in hostapd_get_interface_names() local
568 if_name = strtok_r(arg, ",", &tmp); in hostapd_get_interface_names()
570 while (if_name) { in hostapd_get_interface_names()
577 (*if_names)[*if_names_size] = os_strdup(if_name); in hostapd_get_interface_names()
581 if_name = strtok_r(NULL, ",", &tmp); in hostapd_get_interface_names()
825 char *if_name = NULL; in ap_main() local
828 if_name = if_names[i]; in ap_main()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dap_main.c257 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name, in hostapd_interface_init() argument
268 if (if_name) { in hostapd_interface_init()
269 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init()
561 char *if_name, *tmp, **nnames; in hostapd_get_interface_names() local
566 if_name = strtok_r(arg, ",", &tmp); in hostapd_get_interface_names()
568 while (if_name) { in hostapd_get_interface_names()
575 (*if_names)[*if_names_size] = os_strdup(if_name); in hostapd_get_interface_names()
579 if_name = strtok_r(NULL, ",", &tmp); in hostapd_get_interface_names()
826 char *if_name = NULL; in ap_main() local
829 if_name = if_names[i]; in ap_main()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/network/
Dif_indextoname.c30 char if_name[IFNAMSIZ] = {'\0'}; in if_indextoname_0100() local
33 char *name = if_indextoname(if_index, if_name); in if_indextoname_0100()
Dif_nametoindex.c30 char if_name[IFNAMSIZ] = {'\0'}; in if_nametoindex_0100() local
33 char *name = if_indextoname(if_index, if_name); in if_nametoindex_0100()
/third_party/musl/porting/liteos_a/user/src/network/
Dif_nameindex.c103 d->if_name = p; in if_nameindex()
109 d->if_name = 0; in if_nameindex()
/third_party/musl/src/network/
Dif_nameindex.c102 d->if_name = p; in if_nameindex()
108 d->if_name = 0; in if_nameindex()
/third_party/musl/libc-test/src/api/
Dnet_if.c9 F(char*, if_name) in f()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_pcb.h708 void sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t …
709 void sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t if…
714 const char *if_name,
725 uint32_t ifn_index, const char *if_name);
/third_party/musl/ndk_musl_include/net/
Dif.h14 char *if_name; member
/third_party/musl/porting/liteos_a/kernel/include/net/
Dif.h14 char *if_name; member
/third_party/musl/porting/uniproton/kernel/include/net/
Dif.h14 char *if_name; member
/third_party/musl/porting/liteos_m/kernel/include/net/
Dif.h14 char *if_name; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/
Dif.h14 char *if_name; member
/third_party/musl/include/net/
Dif.h14 char *if_name; member

12