Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 228) sorted by relevance

12345678910

/external/wpa_supplicant_8/src/common/
Dwpa_helpers.c22 static struct wpa_ctrl * wpa_open_ctrl(const char *ifname) in wpa_open_ctrl() argument
27 os_snprintf(buf, sizeof(buf), "%s%s", wpas_ctrl_path, ifname); in wpa_open_ctrl()
35 int wpa_command(const char *ifname, const char *cmd) in wpa_command() argument
41 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command()
42 ctrl = wpa_open_ctrl(ifname); in wpa_command()
61 int wpa_command_resp(const char *ifname, const char *cmd, in wpa_command_resp() argument
67 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command_resp()
68 ctrl = wpa_open_ctrl(ifname); in wpa_command_resp()
83 struct wpa_ctrl * open_wpa_mon(const char *ifname) in open_wpa_mon() argument
87 ctrl = wpa_open_ctrl(ifname); in open_wpa_mon()
[all …]
Dwpa_helpers.h13 int wpa_command(const char *ifname, const char *cmd);
14 int wpa_command_resp(const char *ifname, const char *cmd,
16 int get_wpa_status(const char *ifname, const char *field, char *obuf,
19 struct wpa_ctrl * open_wpa_mon(const char *ifname);
20 int wait_ip_addr(const char *ifname, int timeout);
27 int add_network(const char *ifname);
28 int set_network(const char *ifname, int id, const char *field,
30 int set_network_quoted(const char *ifname, int id, const char *field,
32 int add_cred(const char *ifname);
33 int set_cred(const char *ifname, int id, const char *field, const char *value);
[all …]
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) in linux_set_iface_flags() argument
27 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags()
32 ifname, strerror(errno)); in linux_set_iface_flags()
50 ifname, dev_up ? "UP" : "DOWN", strerror(errno)); in linux_set_iface_flags()
58 int linux_iface_up(int sock, const char *ifname) in linux_iface_up() argument
67 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up()
72 ifname, strerror(errno)); in linux_iface_up()
80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) in linux_get_ifhwaddr() argument
85 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr()
88 ifname, strerror(errno)); in linux_get_ifhwaddr()
[all …]
Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
20 int linux_br_get(char *brname, const char *ifname);
21 int linux_master_get(char *master_ifname, const char *ifname);
Ddriver_wired.c50 char ifname[IFNAMSIZ + 1]; member
224 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
251 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
297 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->ifname, IFNAMSIZ); in wired_init_sockets()
372 os_strlcpy(drv->ifname, params->ifname, sizeof(drv->ifname)); in wired_driver_hapd_init()
425 static int wpa_driver_wired_get_ifflags(const char *ifname, int *flags) in wpa_driver_wired_get_ifflags() argument
437 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags()
450 static int wpa_driver_wired_set_ifflags(const char *ifname, int flags) in wpa_driver_wired_set_ifflags() argument
462 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags()
476 static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status) in wpa_driver_wired_get_ifstatus() argument
[all …]
Ddriver_openbsd.c21 char ifname[IFNAMSIZ + 1]; member
36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wpa_driver_openbsd_get_ssid()
52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name)); in wpa_driver_openbsd_get_bssid()
71 wpa_driver_openbsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, in wpa_driver_openbsd_set_key() argument
82 os_strlcpy(keyavail.i_name, drv->ifname, sizeof(keyavail.i_name)); in wpa_driver_openbsd_set_key()
94 wpa_driver_openbsd_init(void *ctx, const char *ifname) in wpa_driver_openbsd_init() argument
107 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_openbsd_init()
Ddriver_roboswitch.c58 char ifname[IFNAMSIZ + 1]; member
213 sep = drv->ifname + os_strlen(drv->ifname); in wpa_driver_roboswitch_set_param()
215 drv->l2 = l2_packet_init(drv->ifname, NULL, ETH_P_ALL, in wpa_driver_roboswitch_set_param()
220 __func__, drv->ifname); in wpa_driver_roboswitch_set_param()
236 return drv->ifname; in wpa_driver_roboswitch_get_ifname()
349 static void * wpa_driver_roboswitch_init(void *ctx, const char *ifname) in wpa_driver_roboswitch_init() argument
361 sep = drv->ifname + in wpa_driver_roboswitch_init()
362 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)) - 2; in wpa_driver_roboswitch_init()
364 while (sep > drv->ifname && *sep != '.') sep--; in wpa_driver_roboswitch_init()
365 if (sep <= drv->ifname) { in wpa_driver_roboswitch_init()
[all …]
Ddriver_macsec_qca.c58 char ifname[IFNAMSIZ + 1]; member
127 static int macsec_qca_get_ifflags(const char *ifname, int *flags) in macsec_qca_get_ifflags() argument
139 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_get_ifflags()
152 static int macsec_qca_set_ifflags(const char *ifname, int flags) in macsec_qca_set_ifflags() argument
164 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_set_ifflags()
178 static int macsec_qca_get_ifstatus(const char *ifname, int *status) in macsec_qca_get_ifstatus() argument
190 os_strlcpy(ifmr.ifm_name, ifname, IFNAMSIZ); in macsec_qca_get_ifstatus()
206 static int macsec_qca_multi(const char *ifname, const u8 *addr, int add) in macsec_qca_multi() argument
222 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_multi()
308 static void * macsec_qca_init(void *ctx, const char *ifname) in macsec_qca_init() argument
[all …]
Ddriver_wext.c49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid()
133 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid()
176 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid()
219 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq()
550 if (len > sizeof(event.interface_status.ifname)) in wpa_driver_wext_event_link()
551 len = sizeof(event.interface_status.ifname) - 1; in wpa_driver_wext_event_link()
552 os_memcpy(event.interface_status.ifname, buf, len); in wpa_driver_wext_event_link()
558 event.interface_status.ifname, in wpa_driver_wext_event_link()
[all …]
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c32 vlan->ifname); in vlan_if_add()
36 if (!iface_exists(vlan->ifname)) in vlan_if_add()
37 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
46 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */ in vlan_if_add()
57 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname); in vlan_if_add()
60 if (hostapd_vlan_if_remove(hapd, vlan->ifname)) in vlan_if_add()
61 wpa_printf(MSG_ERROR, "Removal of %s failed", vlan->ifname); in vlan_if_add()
77 return hostapd_vlan_if_remove(hapd, vlan->ifname); in vlan_if_remove()
89 vlan->ifname, strerror(errno)); in vlan_dynamic_add()
93 vlan_newlink(vlan->ifname, hapd); in vlan_dynamic_add()
[all …]
Dvlan_full.c39 char ifname[IFNAMSIZ + 1]; member
49 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, in dyn_iface_get() argument
59 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_get()
75 os_strlcpy(next->ifname, ifname, sizeof(next->ifname)); in dyn_iface_get()
86 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) in dyn_iface_put() argument
96 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_put()
419 void vlan_newlink(const char *ifname, struct hostapd_data *hapd) in vlan_newlink() argument
425 wpa_printf(MSG_DEBUG, "VLAN: vlan_newlink(%s)", ifname); in vlan_newlink()
429 os_strcmp(ifname, vlan->ifname) != 0) in vlan_newlink()
445 !br_addif(hapd->conf->bridge, ifname)) in vlan_newlink()
[all …]
Dpreauth_auth.c36 char *ifname; member
51 "from interface '%s'", piface->ifname); in rsn_preauth_receive()
97 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname) in rsn_preauth_iface_add() argument
101 wpa_printf(MSG_DEBUG, "RSN pre-auth interface '%s'", ifname); in rsn_preauth_iface_add()
108 piface->ifname = os_strdup(ifname); in rsn_preauth_iface_add()
109 if (piface->ifname == NULL) { in rsn_preauth_iface_add()
113 piface->l2 = l2_packet_init(piface->ifname, NULL, ETH_P_PREAUTH, in rsn_preauth_iface_add()
126 os_free(piface->ifname); in rsn_preauth_iface_add()
143 os_free(prev->ifname); in rsn_preauth_iface_deinit()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c96 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) in openInterface() argument
136 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
138 error("Can't get hardware address for %s: %m", ifname); in openInterface()
145 warn("Interface %.16s is not Ethernet", ifname); in openInterface()
150 ifname); in openInterface()
155 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
157 error("Can't get MTU for %s: %m", ifname); in openInterface()
160 ifname, ifr.ifr_mtu, ETH_DATA_LEN); in openInterface()
169 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
171 error("Could not get interface index for %s: %m", ifname); in openInterface()
[all …]
/external/compiler-rt/test/msan/
Dif_indextoname.cc14 char ifname[IF_NAMESIZE + 1]; in main() local
15 assert(0 == __msan_test_shadow(ifname, sizeof(ifname))); in main()
16 if (!if_indextoname(1, ifname)) { in main()
21 assert(strlen(ifname) + 1 <= __msan_test_shadow(ifname, sizeof(ifname))); in main()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c33 char ifname[100]; member
55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet()
59 l2->ifname, strerror(errno)); in l2_packet_init_libdnet()
66 l2->ifname, strerror(errno)); in l2_packet_init_libdnet()
205 char ifname[128]; in l2_packet_init_libpcap() local
206 os_snprintf(ifname, sizeof(ifname), "\\Device\\NPF_%s", l2->ifname); in l2_packet_init_libpcap()
207 pcap_lookupnet(ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap()
208 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
211 fprintf(stderr, "ifname='%s'\n", ifname); in l2_packet_init_libpcap()
218 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap()
[all …]
Dl2_packet_winpcap.c50 char ifname[100]; member
168 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap()
169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); in l2_packet_init_libpcap()
172 fprintf(stderr, "ifname='%s'\n", l2->ifname); in l2_packet_init_libpcap()
199 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
210 if (os_strncmp(ifname, "\\Device\\NPF_", 12) == 0) in l2_packet_init()
211 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init()
213 os_snprintf(l2->ifname, sizeof(l2->ifname), "\\Device\\NPF_%s", in l2_packet_init()
214 ifname); in l2_packet_init()
252 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
[all …]
Dl2_packet_freebsd.c38 char ifname[100]; member
109 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap()
110 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
113 fprintf(stderr, "ifname='%s'\n", l2->ifname); in l2_packet_init_libpcap()
151 __func__, l2->ifname, strerror(errno)); in l2_packet_init_libpcap()
228 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
238 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init()
243 if (eth_get(l2->ifname, l2->own_addr) < 0) { in l2_packet_init()
245 "interface '%s'.\n", l2->ifname); in l2_packet_init()
260 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
[all …]
Dl2_packet_none.c19 char ifname[17]; member
68 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init()
95 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
/external/autotest/client/virt/tests/
Djumbo.py33 ifname = vm.get_ifname(0)
47 host_mtu_cmd = "ifconfig %s mtu %s" % (ifname, mtu)
51 arp_add_cmd = "arp -s %s %s -i %s" % (ip, vm.get_mac_address(0), ifname)
55 s, o = virt_test_utils.ping(ip, 1, interface=ifname,
62 s, o = virt_test_utils.ping(ip, 10, interface=ifname,
75 virt_test_utils.ping(ip, interface=ifname,
81 s, o = virt_test_utils.ping(ip, count, interface=ifname,
93 s, o = virt_test_utils.ping(ip, 1, interface=ifname,
97 s, o = virt_test_utils.ping(ip, 10, interface=ifname,
127 utils.run("arp -d %s -i %s" % (ip, ifname))
Dvlan.py24 ifname = []
90 ifname.append(virt_test_utils.get_linux_ifname(session[i],
111 add_vlan(session[i], vlan_i, ifname[i])
113 (subnet, vlan_i, ip_unit[i]), ifname[i])
114 set_arp_ignore(session[i], ifname[i])
120 interface = ifname[0] + '.' + str(vlan)
123 interface = ifname[i] + '.' + str(vlan)
142 interface=ifname[src],
155 rem_vlan(session[0], vlan, ifname[0])
156 rem_vlan(session[1], vlan, ifname[1])
[all …]
/external/wpa_supplicant_8/wpa_supplicant/binder/
Dsupplicant.cpp25 android::String16 driver, ifname, confname, bridge_ifname; in CreateInterface() local
28 if (!params.getString(android::String16("Ifname"), &ifname)) in CreateInterface()
42 android::String8(ifname).string()) != NULL) in CreateInterface()
53 iface.ifname = os_strdup(android::String8(ifname).string()); in CreateInterface()
78 os_free((void *) iface.ifname); in CreateInterface()
85 android::binder::Status Supplicant::RemoveInterface(const std::string &ifname) in RemoveInterface() argument
89 wpa_s = wpa_supplicant_get_iface(wpa_global_, ifname.c_str()); in RemoveInterface()
103 const std::string &ifname, in GetInterface() argument
108 wpa_s = wpa_supplicant_get_iface(wpa_global_, ifname.c_str()); in GetInterface()
/external/dhcpcd-6.8.2/dhcpcd-hooks/
D20-resolv.conf15 local cf="$state_dir/resolv.conf.$ifname"
128 printf %s "$conf" | resolvconf -a "$ifname"
132 if [ -e "$resolv_conf_dir/$ifname" ]; then
133 rm -f "$resolv_conf_dir/$ifname"
136 printf %s "$conf" > "$resolv_conf_dir/$ifname"
143 resolvconf -d "$ifname" -f
145 if [ -e "$resolv_conf_dir/$ifname" ]; then
146 rm -f "$resolv_conf_dir/$ifname"
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.py23 def __init__(self, ifname): argument
24 self.ifname = ifname
25 self.ctrl = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname))
27 raise Exception("Failed to connect to eapol_test (%s)" % ifname)
28 self.mon = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname))
63 logger.debug(self.ifname + ": " + ev)
75 def run(ifname, count, no_fast_reauth, res): argument
76 et = eapol_test(ifname)
/external/dhcpcd-6.8.2/dev/
Dudev.c57 udev_initialized(const char *ifname) in udev_initialized() argument
62 device = udev_device_new_from_subsystem_sysname(udev, "net", ifname); in udev_initialized()
79 const char *subsystem, *ifname, *action; in udev_handle_device() local
88 ifname = udev_device_get_sysname(device); in udev_handle_device()
93 syslog(LOG_DEBUG, "%s: libudev: %s", ifname, action); in udev_handle_device()
95 dhcpcd.handle_interface(ctx, 1, ifname); in udev_handle_device()
97 dhcpcd.handle_interface(ctx, -1, ifname); in udev_handle_device()
/external/android-clat/
Dsetif.c39 int add_address(const char *ifname, int family, const void *address, int prefixlen, const void *bro… in add_address() argument
52 if (!(ifa.ifa_index = if_nametoindex(ifname))) { in add_address()
101 int if_up(const char *ifname, int mtu) { in if_up() argument
107 if (!(ifi.ifi_index = if_nametoindex(ifname))) { in if_up()
161 int add_anycast_address(int sock, struct in6_addr *addr, const char *ifname) { in add_anycast_address() argument
164 ifindex = if_nametoindex(ifname); in add_anycast_address()
166 logmsg(ANDROID_LOG_ERROR, "%s: unknown ifindex for interface %s", __func__, ifname); in add_anycast_address()

12345678910