/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_pcap.c | 34 u8 own_addr[ETH_ALEN]; member 45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 53 eth_addr_t own_addr; in l2_packet_init_libdnet() local 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 71 os_memcpy(l2->own_addr, own_addr.data, ETH_ALEN); in l2_packet_init_libdnet() 100 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 236 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap() 237 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap() 280 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 296 if (own_addr) in l2_packet_init() [all …]
|
D | l2_packet_winpcap.c | 51 u8 own_addr[ETH_ALEN]; member 67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 179 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap() 180 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap() 199 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 219 if (own_addr) in l2_packet_init() 220 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init() 252 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 258 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet_none.c | 20 u8 own_addr[ETH_ALEN]; member 32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 68 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 95 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 101 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet_freebsd.c | 39 u8 own_addr[ETH_ALEN]; member 50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 126 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap() 127 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap() 228 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 243 if (eth_get(l2->ifname, l2->own_addr) < 0) { in l2_packet_init() 260 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 266 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet_ndis.c | 69 u8 own_addr[ETH_ALEN]; member 86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 349 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 379 if (own_addr) in l2_packet_init() 380 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init() 454 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 460 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet_privsep.c | 23 u8 own_addr[ETH_ALEN]; member 57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 129 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 217 os_memcpy(l2->own_addr, reply, ETH_ALEN); in l2_packet_init() 235 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 241 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet_linux.c | 26 u8 own_addr[ETH_ALEN]; member 87 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 220 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 276 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in l2_packet_init() 285 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 308 l2 = l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet.h | 65 const char *ifname, const u8 *own_addr, unsigned short protocol, 77 const char *br_ifname, const char *ifname, const u8 *own_addr,
|
/external/wpa_supplicant_8/src/ap/ |
D | wnm_ap.c | 100 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 101 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 269 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 270 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 424 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent() 425 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent() 490 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent() 491 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent() 546 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req() 547 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
|
D | wpa_auth_glue.c | 409 if (os_memcmp(hapd->own_addr, idata->dst, ETH_ALEN) == 0) { in hostapd_wpa_auth_ft_iter() 413 MAC2STR(idata->src_hapd->own_addr), in hostapd_wpa_auth_ft_iter() 415 MAC2STR(hapd->own_addr), hapd->conf->iface); in hostapd_wpa_auth_ft_iter() 417 idata->src_hapd->own_addr, in hostapd_wpa_auth_ft_iter() 470 hapd->own_addr, proto, in hostapd_wpa_auth_send_ether() 479 os_memcpy(buf->h_source, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ether() 511 os_memcpy(m->sa, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ft_action() 512 os_memcpy(m->bssid, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ft_action() 607 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb); in hostapd_setup_wpa()
|
D | ctrl_iface_ap.c | 257 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 258 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 318 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate() 319 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate() 378 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_disassociate() 379 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_disassociate() 495 (int) i, MAC2STR(bss->own_addr), in hostapd_ctrl_iface_status()
|
D | hostapd.c | 513 hapd->own_addr[i]; in hostapd_validate_bssid_configuration() 557 if ((hapd->own_addr[i] & mask[i]) != hapd->own_addr[i]) { in hostapd_validate_bssid_configuration() 560 MAC2STR(mask), MAC2STR(hapd->own_addr)); in hostapd_validate_bssid_configuration() 892 inc_byte_array(hapd->own_addr, ETH_ALEN); in hostapd_setup_bss() 893 } while (mac_in_conf(hapd->iconf, hapd->own_addr)); in hostapd_setup_bss() 896 os_memcpy(hapd->own_addr, conf->bssid, ETH_ALEN); in hostapd_setup_bss() 898 if (hostapd_mac_comp(hapd->own_addr, in hostapd_setup_bss() 899 hapd->iface->bss[0]->own_addr) == in hostapd_setup_bss() 910 conf->iface, hapd->own_addr, hapd, in hostapd_setup_bss() 915 MACSTR ")", MAC2STR(hapd->own_addr)); in hostapd_setup_bss() [all …]
|
D | ap_drv_ops.c | 315 return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, hapd->own_addr, in hostapd_vlan_if_add() 356 return hapd->driver->sta_auth(hapd->drv_priv, hapd->own_addr, addr, in hostapd_sta_auth() 366 return hapd->driver->sta_assoc(hapd->drv_priv, hapd->own_addr, addr, in hostapd_sta_assoc() 645 return hapd->driver->sta_deauth(hapd->drv_priv, hapd->own_addr, addr, in hostapd_drv_sta_deauth() 655 return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr, in hostapd_drv_sta_disassoc() 677 hapd->own_addr, hapd->own_addr, data, in hostapd_drv_send_action()
|
D | ieee802_11_shared.c | 64 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 65 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 102 os_memcpy(resp.sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_resp() 103 os_memcpy(resp.bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_resp()
|
D | preauth_auth.c | 61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive() 255 os_memcpy(ethhdr->h_source, hapd->own_addr, ETH_ALEN); in rsn_preauth_send()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_hostap.c | 225 static int hostap_init_sockets(struct hostap_driver_data *drv, u8 *own_addr) in hostap_init_sockets() argument 265 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); in hostap_init_sockets() 286 size_t data_len, int encrypt, const u8 *own_addr, in hostap_send_eapol() argument 309 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol() 310 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol() 999 if (hostap_init_sockets(drv, params->own_addr) || in hostap_init() 1032 static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_deauth() argument 1052 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth() 1053 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth() 1080 static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_disassoc() argument [all …]
|
D | driver_roboswitch.c | 59 u8 own_addr[ETH_ALEN]; member 178 os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0) in wpa_driver_roboswitch_receive() 224 l2_packet_get_own_addr(drv->l2, drv->own_addr); in wpa_driver_roboswitch_set_param() 358 drv->own_addr[0] = '\0'; in wpa_driver_roboswitch_init()
|
D | driver_wired.c | 202 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument 262 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets() 320 const u8 *own_addr, u32 flags) in wired_send_eapol() argument 339 os_memcpy(hdr->src, own_addr, ETH_ALEN); in wired_send_eapol() 374 if (wired_init_sockets(drv, params->own_addr)) { in wired_driver_hapd_init()
|
D | driver_ndis.h | 34 u8 own_addr[ETH_ALEN]; member
|
D | driver.h | 1411 u8 *own_addr; /* buffer for writing own MAC address */ member 2215 const u8 *own_addr, u32 flags); 2228 int (*sta_deauth)(void *priv, const u8 *own_addr, const u8 *addr, 2242 int (*sta_disassoc)(void *priv, const u8 *own_addr, const u8 *addr, 2921 int (*sta_assoc)(void *priv, const u8 *own_addr, const u8 *addr, 2937 int (*sta_auth)(void *priv, const u8 *own_addr, const u8 *addr, 3006 void (*poll_client)(void *priv, const u8 *own_addr,
|
D | driver_atheros.c | 76 u8 own_addr[ETH_ALEN]; member 79 static int atheros_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, 730 atheros_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, in atheros_sta_deauth() argument 754 atheros_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, in atheros_sta_disassoc() argument 867 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) { in atheros_raw_receive() 1031 atheros_sta_auth(void *priv, const u8 *own_addr, const u8 *addr, u16 seq, in atheros_sta_auth() argument 1068 atheros_sta_assoc(void *priv, const u8 *own_addr, const u8 *addr, in atheros_sta_assoc() argument 1546 int encrypt, const u8 *own_addr, u32 flags) in atheros_send_eapol() argument 1573 memcpy(eth->h_source, own_addr, ETH_ALEN); in atheros_send_eapol() 1631 if (l2_packet_get_own_addr(drv->sock_xmit, params->own_addr)) in atheros_init() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mesh_rsn.c | 210 if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr) < 0) { in mesh_rsn_auth_init() 280 return sae_prepare_commit(wpa_s->own_addr, sta->addr, in mesh_rsn_build_sae_commit() 330 rsn_pmkid(sta->sae->pmk, PMK_LEN, rsn->wpa_s->own_addr, in mesh_rsn_get_pmkid() 339 u8 *myaddr = rsn->wpa_s->own_addr; in mesh_rsn_derive_aek() 367 u8 *myaddr = wpa_s->own_addr; in mesh_rsn_derive_mtk() 439 const u8 *aad[] = { rsn->wpa_s->own_addr, sta->addr, cat }; in mesh_rsn_protect_frame() 513 const u8 *aad[] = { sta->addr, wpa_s->own_addr, cat }; in mesh_rsn_process_ampe()
|
D | ibss_rsn.c | 159 if (os_memcmp(peer->ibss_rsn->wpa_s->own_addr, peer->addr, in supp_set_key() 202 static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr, in ibss_rsn_supp_init() argument 227 wpa_sm_set_own_addr(peer->supp, own_addr); in ibss_rsn_supp_init() 323 os_memcmp(ibss_rsn->wpa_s->own_addr, addr, ETH_ALEN) < 0) { in auth_set_key() 407 const u8 *own_addr) in ibss_rsn_auth_init_group() argument 433 ibss_rsn->auth_group = wpa_init(own_addr, &conf, &cb); in ibss_rsn_auth_init_group() 490 os_memcpy(auth.sa, wpa_s->own_addr, ETH_ALEN); in ibss_rsn_send_auth() 539 if (ibss_rsn_supp_init(peer, ibss_rsn->wpa_s->own_addr, in ibss_rsn_peer_init() 677 if (ibss_rsn_auth_init_group(ibss_rsn, wpa_s->own_addr) < 0) { in ibss_rsn_init()
|
D | wpas_kay.c | 227 wpa_s->own_addr); in ieee802_1x_alloc_kay_sm() 343 if (ieee802_1x_cak_128bits_aes_cmac(msk->key, wpa_s->own_addr, in ieee802_1x_notify_create_actor() 353 if (ieee802_1x_ckn_128bits_aes_cmac(msk->key, wpa_s->own_addr, in ieee802_1x_notify_create_actor()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 35 sm->r0kh_id, sm->r0kh_id_len, sm->own_addr, in wpa_derive_ptk_ft() 41 sm->own_addr, sm->pmk_r1, sm->pmk_r1_name); in wpa_derive_ptk_ft() 45 return wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, anonce, sm->own_addr, in wpa_derive_ptk_ft() 298 if (wpa_ft_mic(kck, kck_len, sm->own_addr, target_ap, 5, in wpa_ft_gen_req_ies() 472 sm->own_addr, sm->pmk_r1, sm->pmk_r1_name); in wpa_ft_process_response() 479 sm->own_addr, bssid, sm->pmk_r1_name, &sm->ptk, in wpa_ft_process_response() 769 if (wpa_ft_mic(sm->ptk.kck, sm->ptk.kck_len, sm->own_addr, src_addr, 6, in wpa_ft_validate_reassoc_resp()
|