/test/vts-testcase/security/poc/target/kernel_wifi/32402310/ |
poc.cpp | 77 int send_testmode(const char *ifname, u_int16_t nlmsg_type, u_int32_t nlmsg_pid, 93 int if_index = if_nametoindex(ifname); 151 const char *ifname = host_input.params["ifname"].c_str(); local 152 if (strlen(ifname) == 0) { 153 fprintf(stderr, "ifname parameter is empty."); 179 ret = send_testmode(ifname, family_id, getpid(), NL80211_CMD_VENDOR, 1);
|
/kernel/tests/net/test/ |
net_test.py | 191 def GetInterfaceIndex(ifname): 193 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0) 198 def SetInterfaceHWAddr(ifname, hwaddr): 204 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr) 208 def SetInterfaceState(ifname, up): 210 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0) 217 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags) 221 def SetInterfaceUp(ifname): 222 return SetInterfaceState(ifname, True) 225 def SetInterfaceDown(ifname) [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver_wext.c | 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 133 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 176 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 219 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); 550 if (len > sizeof(event.interface_status.ifname)) 551 len = sizeof(event.interface_status.ifname) - 1; 552 os_memcpy(event.interface_status.ifname, buf, len); 558 event.interface_status.ifname, [all...] |
driver_none.c | 53 static void * none_driver_init(void *ctx, const char *ifname)
|
driver_wired.c | 190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); 218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); 264 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->common.ifname, IFNAMSIZ); 339 os_strlcpy(drv->common.ifname, params->ifname, 340 sizeof(drv->common.ifname)); 370 static void * wpa_driver_wired_init(void *ctx, const char *ifname) 378 if (driver_wired_init_common(&drv->common, ifname, ctx) < 0) {
|
driver_ndis.c | 966 static int wpa_driver_ndis_set_key(const char *ifname, void *priv, 1074 wpa_driver_ndis_set_key(drv->ifname, drv, WPA_ALG_WEP, 1112 wpa_driver_ndis_set_key(drv->ifname, drv, WPA_ALG_WEP, 2715 WCHAR ifname[MAX_NDIS_DEVICE_NAME_LEN]; local [all...] |
/external/wpa_supplicant_8/src/fst/ |
fst_iface.h | 23 char ifname[IFNAMSIZ + 1]; member in struct:fst_iface 28 struct fst_iface * fst_iface_create(struct fst_group *g, const char *ifname, 41 return i->ifname;
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
wpas-test.py | 30 ifname = sys.argv[1] 39 path = wpas.getInterface(ifname) 44 path = wpas.addInterface(ifname, {'driver': dbus.Variant('wext')})
|
wpas-dbus-new-wps.py | 43 print "Missing ifname argument" 66 ifname = sys.argv[1] 68 path = wpas.GetInterface(ifname)
|
/frameworks/base/services/net/java/android/net/ip/ |
ConnectivityPacketTracker.java | 69 final String ifname; local 75 ifname = netif.getName(); 83 mTag = TAG + "." + ifname;
|
/bionic/libc/bionic/ |
net_if.cpp | 47 char* if_indextoname(unsigned ifindex, char* ifname) { 58 return (rc == -1) ? nullptr : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); 61 unsigned if_nametoindex(const char* ifname) { 67 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/ |
hidl_manager.h | 131 const std::string &ifname, 134 const std::string &ifname, 137 const std::string &ifname, int network_id, 140 const std::string &ifname, int network_id, 145 const std::string &ifname, 148 const std::string &ifname, 151 const std::string &ifname, int network_id, 154 const std::string &ifname, int network_id, 166 const std::string &ifname, 169 const std::string &ifname, [all...] |
supplicant.cpp | 110 wpa_s->ifname, &iface)) { 122 wpa_s->ifname, &iface)) { 138 IfaceType::P2P, wpa_s->ifname}); 141 IfaceType::STA, wpa_s->ifname});
|
/external/wpa_supplicant_8/wpa_supplicant/ |
mesh.h | 19 int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
|
preauth_test.c | 216 static void wpa_init_conf(struct wpa_supplicant *wpa_s, const char *ifname) 249 os_strlcpy(wpa_s->ifname, ifname, sizeof(wpa_s->ifname)); 250 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); 252 l2 = l2_packet_init(wpa_s->ifname, NULL, ETH_P_RSN_PREAUTH, NULL, 289 "<ifname>\n");
|
mesh.c | 213 os_strlcpy(bss->conf->iface, wpa_s->ifname, sizeof(bss->conf->iface)); 584 static int wpas_mesh_get_ifname(struct wpa_supplicant *wpa_s, char *ifname, 587 char *ifname_ptr = wpa_s->ifname; 590 res = os_snprintf(ifname, len, "mesh-%s-%d", ifname_ptr, 593 (os_strlen(ifname) >= IFNAMSIZ && 594 os_strlen(wpa_s->ifname) < IFNAMSIZ)) { 596 res = os_snprintf(ifname, len, "mesh-%d", wpa_s->mesh_if_idx); 605 int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname, 612 if (ifname[0] == '\0' && wpas_mesh_get_ifname(wpa_s, ifname, len) < 0 [all...] |
/hardware/interfaces/wifi/1.1/default/ |
wifi_p2p_iface.h | 37 WifiP2pIface(const std::string& ifname,
|
wifi_ap_iface.cpp | 32 const std::string& ifname, 34 : ifname_(ifname), legacy_hal_(legacy_hal), is_valid_(true) {}
|
/hardware/libhardware/include/hardware/ |
bt_pan.h | 44 bt_status_t error, const char* ifname);
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
driver_cmd_nl80211.c | 79 linux_set_iface_flags(drv->global->ioctl_sock, driver->first_bss->ifname, 1); 85 ret = linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname, macaddr); 93 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); 124 linux_set_iface_flags(drv->global->ioctl_sock, driver->first_bss->ifname, 0);
|
/external/dhcpcd-6.8.2/ |
control.c | 206 make_sock(struct sockaddr_un *sa, const char *ifname, int unpriv) 238 ifname ? "-" : "", ifname ? ifname : ""); 247 control_start1(struct dhcpcd_ctx *ctx, const char *ifname, mode_t fmode) 253 if ((fd = make_sock(&sa, ifname, (fmode & S_UNPRIV) == S_UNPRIV)) == -1) 275 control_start(struct dhcpcd_ctx *ctx, const char *ifname) 279 if ((fd = control_start1(ctx, ifname, S_PRIV)) == -1) 285 if (ifname == NULL && (fd = control_start1(ctx, NULL, S_UNPRIV)) != -1){ 333 control_open(struct dhcpcd_ctx *ctx, const char *ifname) [all...] |
/external/wpa_supplicant_8/wpa_supplicant/examples/p2p/ |
p2p_connect.py | 58 global ifname 78 def __init__(self,ifname,wpas_dbus_interface,addr, 81 self.ifname = ifname 110 self.path = self.wpas.GetInterface(ifname) 118 {'Ifname': ifname, 'Driver': 'test'})
|
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_linux.c | 24 char ifname[IFNAMSIZ + 1]; member in struct:l2_packet_data 160 l2->ifname); 246 const char *ifname, const u8 *own_addr, unsigned short protocol, 258 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); 275 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); 313 const char *br_ifname, const char *ifname, const u8 *own_addr, 368 ll.sll_ifindex = if_nametoindex(ifname); 432 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)) [all...] |
/system/core/libnetutils/ |
dhcpclient.c | 127 static int dhcp_configure(const char *ifname, dhcp_info *info) 130 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 387 int dhcp_init_ifc(const char *ifname) 405 if (ifc_get_hwaddr(ifname, hwaddr)) { 408 if (ifc_get_ifindex(ifname, &if_index)) { 412 s = open_raw_socket(ifname, hwaddr, if_index); 432 printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); 433 return dhcp_configure(ifname, &info); 512 printerr("configuring %s\n", ifname); 514 return dhcp_configure(ifname, &info) [all...] |
/external/wpa_supplicant_8/src/ap/ |
ap_drv_ops.h | 32 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname, 34 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname); 35 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname); 52 const char *ifname, const u8 *addr, void *bss_ctx, 56 const char *ifname); 59 int hostapd_get_seqnum(const char *ifname, struct hostapd_data *hapd, 84 int hostapd_drv_set_key(const char *ifname, 142 static inline int hostapd_drv_set_sta_vlan(const char *ifname, 148 return hapd->driver->set_sta_vlan(hapd->drv_priv, addr, ifname,
|