/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() 255 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 261 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() 350 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 380 if (own_addr) in l2_packet_init() 381 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init() 455 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 461 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() 236 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 242 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 110 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 182 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || in l2_packet_receive() 244 if (os_memcmp(ll.sll_addr, l2->own_addr, ETH_ALEN) == 0) { in l2_packet_receive_br() 272 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 331 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in l2_packet_init() 341 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument 366 l2 = l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
|
D | l2_packet.h | 70 const char *ifname, const u8 *own_addr, unsigned short protocol, 82 const char *br_ifname, const char *ifname, const u8 *own_addr,
|
/external/wpa_supplicant_8/src/fst/ |
D | fst_iface.c | 16 const u8 *own_addr, in fst_iface_create() argument 33 os_memcpy(i->own_addr, own_addr, sizeof(i->own_addr)); in fst_iface_create()
|
D | fst.c | 38 struct fst_iface * fst_attach(const char *ifname, const u8 *own_addr, in fst_attach() argument 68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach() 221 os_memcpy(iface->own_addr, addr, sizeof(iface->own_addr)); in fst_update_mac_addr()
|
D | fst_iface.h | 21 u8 own_addr[ETH_ALEN]; member 29 const u8 *own_addr, 46 return i->own_addr; in fst_iface_get_addr()
|
D | fst_group.c | 55 const u8 *own_addr, enum mb_band_id band, u8 channel) in fst_fill_mb_ie() argument 60 if (own_addr) in fst_fill_mb_ie() 83 if (own_addr) { in fst_fill_mb_ie() 85 os_memcpy(&mbie[1], own_addr, ETH_ALEN); in fst_fill_mb_ie()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_hostap.c | 216 static int hostap_init_sockets(struct hostap_driver_data *drv, u8 *own_addr) in hostap_init_sockets() argument 260 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); in hostap_init_sockets() 283 size_t data_len, int encrypt, const u8 *own_addr, in hostap_send_eapol() argument 306 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol() 307 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol() 1001 if (hostap_init_sockets(drv, params->own_addr) || in hostap_init() 1034 static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_deauth() argument 1054 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth() 1055 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth() 1082 static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_disassoc() argument [all …]
|
D | driver_wired.c | 168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument 230 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets() 288 const u8 *own_addr, u32 flags) in wired_send_eapol() argument 307 os_memcpy(hdr->src, own_addr, ETH_ALEN); in wired_send_eapol() 343 if (wired_init_sockets(drv, params->own_addr)) { in wired_driver_hapd_init()
|
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() 366 drv->own_addr[0] = '\0'; in wpa_driver_roboswitch_init()
|
/external/wpa_supplicant_8/src/ap/ |
D | wnm_ap.c | 147 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 148 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 377 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 378 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 686 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent() 687 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent() 752 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent() 753 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent() 809 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req() 810 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req() [all …]
|
D | hostapd.c | 677 hapd->own_addr[i]; in hostapd_validate_bssid_configuration() 723 if ((hapd->own_addr[i] & mask[i]) != hapd->own_addr[i]) { in hostapd_validate_bssid_configuration() 726 MAC2STR(mask), MAC2STR(hapd->own_addr)); in hostapd_validate_bssid_configuration() 1133 u8 *addr = hapd->own_addr; in hostapd_setup_bss() 1137 os_memcpy(hapd->own_addr, conf->bssid, ETH_ALEN); in hostapd_setup_bss() 1139 if (hostapd_mac_comp(hapd->own_addr, in hostapd_setup_bss() 1140 hapd->iface->bss[0]->own_addr) == in hostapd_setup_bss() 1152 inc_byte_array(hapd->own_addr, ETH_ALEN); in hostapd_setup_bss() 1153 } while (mac_in_conf(hapd->iconf, hapd->own_addr)); in hostapd_setup_bss() 1163 MACSTR ")", MAC2STR(hapd->own_addr)); in hostapd_setup_bss() [all …]
|
D | ap_drv_ops.c | 323 return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, hapd->own_addr, in hostapd_vlan_if_add() 392 params.own_addr = hapd->own_addr; in hostapd_sta_auth() 408 return hapd->driver->sta_assoc(hapd->drv_priv, hapd->own_addr, addr, in hostapd_sta_assoc() 734 return hapd->driver->sta_deauth(hapd->drv_priv, hapd->own_addr, addr, in hostapd_drv_sta_deauth() 744 return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr, in hostapd_drv_sta_disassoc() 770 bssid = hapd->own_addr; in hostapd_drv_send_action() 793 hapd->own_addr, bssid, data, len, 0); in hostapd_drv_send_action() 805 hapd->own_addr, hapd->own_addr, data, in hostapd_drv_send_action_addr3_ap()
|
D | wpa_auth_glue.c | 637 os_memcmp(hapd->own_addr, idata->dst, ETH_ALEN) != 0) in hostapd_wpa_auth_ft_iter() 643 MAC2STR(idata->src_hapd->own_addr), in hostapd_wpa_auth_ft_iter() 645 MAC2STR(hapd->own_addr), hapd->conf->iface); in hostapd_wpa_auth_ft_iter() 658 os_memcpy(data->addr, idata->src_hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_ft_iter() 725 os_memcpy(buf->h_source, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ether() 827 os_memcmp(hapd->own_addr, idata->dst_addr, ETH_ALEN) != 0) in hostapd_wpa_auth_oui_iter() 847 os_memcpy(data->src_addr, src_hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_oui_iter() 908 return eth_p_oui_send(oui_ctx, hapd->own_addr, dst, data, data_len); in hostapd_wpa_auth_send_oui() 1032 os_memcpy(m->sa, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ft_action() 1033 os_memcpy(m->bssid, hapd->own_addr, ETH_ALEN); in hostapd_wpa_auth_send_ft_action() [all …]
|
D | wpa_auth_kay.c | 333 hapd->own_addr); in ieee802_1x_alloc_kay_sm_hapd() 446 wpa_hexdump(MSG_DEBUG, "own_addr", hapd->own_addr, ETH_ALEN); in ieee802_1x_notify_create_actor_hapd() 451 if (ieee802_1x_cak_aes_cmac(msk->key, msk->len, hapd->own_addr, in ieee802_1x_notify_create_actor_hapd() 460 if (ieee802_1x_ckn_aes_cmac(msk->key, msk->len, hapd->own_addr, in ieee802_1x_notify_create_actor_hapd()
|
D | ctrl_iface_ap.c | 474 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 475 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 534 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate() 535 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate() 596 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_disassociate() 597 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_disassociate() 666 hostapd_drv_poll_client(hapd, hapd->own_addr, addr, in hostapd_ctrl_iface_poll_sta() 856 (int) i, MAC2STR(bss->own_addr), in hostapd_ctrl_iface_status()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ibss_rsn.c | 166 if (os_memcmp(peer->ibss_rsn->wpa_s->own_addr, peer->addr, in supp_set_key() 215 static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr, in ibss_rsn_supp_init() argument 242 wpa_sm_set_own_addr(peer->supp, own_addr); in ibss_rsn_supp_init() 349 os_memcmp(ibss_rsn->wpa_s->own_addr, addr, ETH_ALEN) < 0) { in auth_set_key() 433 const u8 *own_addr, struct wpa_ssid *ssid) in ibss_rsn_auth_init_group() argument 459 ibss_rsn->auth_group = wpa_init(own_addr, &conf, &cb, ibss_rsn); in ibss_rsn_auth_init_group() 513 os_memcpy(auth.sa, wpa_s->own_addr, ETH_ALEN); in ibss_rsn_send_auth() 561 if (ibss_rsn_supp_init(peer, ibss_rsn->wpa_s->own_addr, in ibss_rsn_peer_init() 700 if (ibss_rsn_auth_init_group(ibss_rsn, wpa_s->own_addr, ssid) < 0) { in ibss_rsn_init()
|
D | offchannel.c | 26 if (os_memcmp(src, wpa_s->own_addr, ETH_ALEN) == 0) { in wpas_get_tx_interface() 30 os_memcmp(wpa_s->parent->own_addr, in wpas_get_tx_interface() 31 wpa_s->own_addr, ETH_ALEN) == 0 && in wpas_get_tx_interface() 55 if (os_memcmp(src, iface->own_addr, ETH_ALEN) == 0) in wpas_get_tx_interface()
|
D | mesh_rsn.c | 247 if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr, in mesh_rsn_auth_init() 345 return sae_prepare_commit(wpa_s->own_addr, sta->addr, in mesh_rsn_build_sae_commit() 425 u8 *myaddr = rsn->wpa_s->own_addr; in mesh_rsn_derive_aek() 459 u8 *myaddr = wpa_s->own_addr; in mesh_rsn_derive_mtk() 540 const u8 *aad[] = { rsn->wpa_s->own_addr, sta->addr, cat }; in mesh_rsn_protect_frame() 640 const u8 *aad[] = { sta->addr, wpa_s->own_addr, cat }; in mesh_rsn_process_ampe()
|
D | wpas_kay.c | 245 wpa_s->own_addr); in ieee802_1x_alloc_kay_sm() 360 if (ieee802_1x_cak_aes_cmac(msk->key, msk->len, wpa_s->own_addr, in ieee802_1x_notify_create_actor() 370 if (ieee802_1x_ckn_aes_cmac(msk->key, msk->len, wpa_s->own_addr, in ieee802_1x_notify_create_actor()
|