/hostap-latest/wpa_supplicant/ |
D | ctrl_iface_udp.c | 33 struct sockaddr_in6 addr; member 35 struct sockaddr_in addr; member 86 char addr[INET6_ADDRSTRLEN]; in wpa_supplicant_ctrl_iface_attach() local 92 os_memcpy(&dst->addr, from, sizeof(*from)); in wpa_supplicant_ctrl_iface_attach() 99 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach() 119 char addr[INET6_ADDRSTRLEN]; local 125 if (from->sin6_port == dst->addr.sin6_port && 126 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 129 inet_ntop(AF_INET6, &from->sin6_addr, addr, 133 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && [all …]
|
D | ibss_rsn.c | 28 const u8 *addr) in ibss_rsn_get_peer() argument 33 if (ether_addr_equal(addr, peer->addr)) in ibss_rsn_get_peer() 142 MAC2STR(peer->addr)); in ibss_check_rsn_completed() 147 const u8 *addr, int key_idx, int set_tx, in supp_set_key() argument 155 __func__, alg, MAC2STR(addr), key_idx, set_tx); in supp_set_key() 166 if (os_memcmp(peer->ibss_rsn->wpa_s->own_addr, peer->addr, in supp_set_key() 173 if (is_broadcast_ether_addr(addr)) in supp_set_key() 174 addr = peer->addr; in supp_set_key() 175 return wpa_drv_set_key(peer->ibss_rsn->wpa_s, link_id, alg, addr, in supp_set_key() 188 static int supp_mlme_setprotection(void *ctx, const u8 *addr, in supp_mlme_setprotection() argument [all …]
|
/hostap-latest/tests/hwsim/ |
D | test_ap_qosmap.py | 50 addr = dev[0].p2p_interface_addr() 54 check_qos_map(apdev[0], hapd, dev[0], addr, 53, 2) 55 check_qos_map(apdev[0], hapd, dev[0], addr, 22, 6) 56 check_qos_map(apdev[0], hapd, dev[0], addr, 8, 0) 57 check_qos_map(apdev[0], hapd, dev[0], addr, 15, 0) 58 check_qos_map(apdev[0], hapd, dev[0], addr, 0, 1) 59 check_qos_map(apdev[0], hapd, dev[0], addr, 7, 1) 60 check_qos_map(apdev[0], hapd, dev[0], addr, 16, 3) 61 check_qos_map(apdev[0], hapd, dev[0], addr, 31, 3) 62 check_qos_map(apdev[0], hapd, dev[0], addr, 32, 4) [all …]
|
D | test_rrm.py | 407 addr = dev[0].own_addr() 410 if "OK" not in hapd.request("REQ_LCI " + addr): 421 if "OK" not in hapd.request("REQ_LCI " + addr): 703 addr = dev[1].own_addr() 706 if "OK" not in hapd.request("REQ_RANGE " + addr + " 10 1 " + bssid): 718 if "OK" not in hapd.request("REQ_RANGE " + addr + " 10 1 " + bssid): 823 def run_req_beacon(hapd, addr, request): argument 824 token = hapd.request("REQ_BEACON " + addr + " " + request) 840 if fields[1] != addr: 869 addr = dev[0].own_addr() [all …]
|
D | test_wnm.py | 133 addr = dev[0].p2p_interface_addr() 134 hapd.request("DISASSOC_IMMINENT " + addr + " 10") 150 addr = dev[0].own_addr() 151 …cmd = "BSS_TM_REQ " + addr + " pref=1 disassoc_imminent=1 disassoc_timer=100 neighbor=" + apdev[1]… 178 addr = dev[0].own_addr() 180 if "FAIL" not in hapd.request("DISASSOC_IMMINENT " + addr + " 10"): 188 addr = dev[0].p2p_interface_addr() 189 hapd.request("ESS_DISASSOC " + addr + " 10 http://example.com/session-info") 203 addr = dev[0].own_addr() 204 if "FAIL" not in hapd.request("ESS_DISASSOC " + addr + " 10 http://" + 256*'a'): [all …]
|
D | wlantest.py | 155 def info_sta(self, field, bssid, addr): argument 156 res = self.cli_cmd(["info_sta", field, bssid, addr]) 158 raise Exception("Could not get STA info from wlantest for " + addr) 161 def get_sta_counter(self, field, bssid, addr): argument 162 res = self.cli_cmd(["get_sta_counter", field, bssid, addr]) 167 def clear_sta_counters(self, bssid, addr): argument 168 res = self.cli_cmd(["clear_sta_counters", bssid, addr]) 205 def require_sta_pmf_mandatory(self, bssid, addr): argument 206 res = self.info_sta("rsn_capab", bssid, addr) 212 def require_sta_pmf(self, bssid, addr): argument [all …]
|
/hostap-latest/wlantest/ |
D | sta.c | 18 struct wlantest_sta * sta_find(struct wlantest_bss *bss, const u8 *addr) in sta_find() argument 23 if (ether_addr_equal(sta->addr, addr)) in sta_find() 32 struct wlantest_bss *bss, const u8 *addr) in sta_find_mlo() argument 39 if (ether_addr_equal(sta->addr, addr)) in sta_find_mlo() 41 if (ether_addr_equal(sta->mld_mac_addr, addr)) in sta_find_mlo() 45 if (is_zero_ether_addr(addr)) in sta_find_mlo() 50 if (ether_addr_equal(sta->link_addr[link_id], addr)) in sta_find_mlo() 62 if (ether_addr_equal(sta->addr, addr)) in sta_find_mlo() 64 if (ether_addr_equal(sta->mld_mac_addr, addr)) in sta_find_mlo() 69 addr)) in sta_find_mlo() [all …]
|
/hostap-latest/src/ap/ |
D | sta_info.c | 78 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta() 85 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) in ap_get_sta_p2p() argument 99 if (ether_addr_equal(p2p_dev_addr, addr)) in ap_get_sta_p2p() 122 "list.", MAC2STR(sta->addr)); in ap_sta_list_del() 130 sta->hnext = hapd->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_add() 131 hapd->sta_hash[STA_HASH(sta->addr)] = sta; in ap_sta_hash_add() 139 s = hapd->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_del() 141 if (os_memcmp(s->addr, sta->addr, 6) == 0) { in ap_sta_hash_del() 142 hapd->sta_hash[STA_HASH(sta->addr)] = s->hnext; in ap_sta_hash_del() 147 !ether_addr_equal(s->hnext->addr, sta->addr)) in ap_sta_hash_del() [all …]
|
D | wnm_ap.c | 28 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, in ieee80211_11_get_tfs_ie() argument 33 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); in ieee80211_11_get_tfs_ie() 38 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, in ieee80211_11_set_tfs_ie() argument 43 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); in ieee80211_11_set_tfs_ie() 63 const u8 *addr, u8 dialog_token, in ieee802_11_send_wnmsleep_resp() argument 82 sta = ap_get_sta(hapd, addr); in ieee802_11_send_wnmsleep_resp() 101 if (ieee80211_11_get_tfs_ie(hapd, addr, wnmtfs_ie, &wnmtfs_ie_len, in ieee802_11_send_wnmsleep_resp() 164 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 241 addr, NULL, NULL); in ieee802_11_send_wnmsleep_resp() 256 addr, NULL, NULL); in ieee802_11_send_wnmsleep_resp() [all …]
|
D | ap_mlme.c | 56 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_authenticate_indication() 59 MAC2STR(sta->addr), mlme_auth_alg_str(sta->auth_alg)); in mlme_authenticate_indication() 85 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_deauthenticate_indication() 88 MAC2STR(sta->addr), reason_code); in mlme_deauthenticate_indication() 108 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_associate_indication() 111 MAC2STR(sta->addr)); in mlme_associate_indication() 136 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_reassociate_indication() 139 MAC2STR(sta->addr)); in mlme_reassociate_indication() 164 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_disassociate_indication() 167 MAC2STR(sta->addr), reason_code); in mlme_disassociate_indication() [all …]
|
D | ndisc_snoop.c | 23 struct in6_addr addr; member 41 static int sta_ip6addr_add(struct sta_info *sta, struct in6_addr *addr) in sta_ip6addr_add() argument 49 os_memcpy(&ip6addr->addr, addr, sizeof(*addr)); in sta_ip6addr_add() 63 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &ip6addr->addr); in sta_ip6addr_del() 70 static int sta_has_ip6addr(struct sta_info *sta, struct in6_addr *addr) in sta_has_ip6addr() argument 75 if (ip6addr->addr.s6_addr32[0] == addr->s6_addr32[0] && in sta_has_ip6addr() 76 ip6addr->addr.s6_addr32[1] == addr->s6_addr32[1] && in sta_has_ip6addr() 77 ip6addr->addr.s6_addr32[2] == addr->s6_addr32[2] && in sta_has_ip6addr() 78 ip6addr->addr.s6_addr32[3] == addr->s6_addr32[3]) in sta_has_ip6addr() 138 MACSTR, addrtxt, MAC2STR(sta->addr)); in handle_ndisc() [all …]
|
D | fils_hlp.c | 41 struct sockaddr_in addr; in fils_dhcp_request() local 128 os_memset(&addr, 0, sizeof(addr)); in fils_dhcp_request() 129 addr.sin_family = AF_INET; in fils_dhcp_request() 130 addr.sin_addr.s_addr = hapd->conf->dhcp_server.u.v4.s_addr; in fils_dhcp_request() 131 addr.sin_port = htons(hapd->conf->dhcp_server_port); in fils_dhcp_request() 134 (const struct sockaddr *) &addr, sizeof(addr)); in fils_dhcp_request() 142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request() 156 struct sockaddr_in addr; in fils_dhcp_handler() local 167 addr_len = sizeof(addr); in fils_dhcp_handler() 169 (struct sockaddr *) &addr, &addr_len); in fils_dhcp_handler() [all …]
|
D | ieee802_11_auth.c | 34 macaddr addr; member 44 macaddr addr; member 78 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, in hostapd_acl_cache_get() argument 87 if (!ether_addr_equal(entry->addr, addr)) in hostapd_acl_cache_get() 115 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, in hostapd_radius_acl_query() argument 134 os_snprintf(buf, sizeof(buf), RADIUS_ADDR_FORMAT, MAC2STR(addr)); in hostapd_radius_acl_query() 154 MAC2STR(addr)); in hostapd_radius_acl_query() 193 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) in hostapd_radius_acl_query() 211 int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, in hostapd_check_acl() argument 215 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_check_acl() [all …]
|
D | ap_drv_ops.h | 39 const u8 *addr, int aid, int val); 41 const u8 *addr, u16 aid, u16 capability, 59 const char *ifname, const u8 *addr, void *bss_ctx, 70 const u8 *addr, int idx, int link_id, u8 *seq); 79 int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr, 81 int hostapd_sta_set_airtime_weight(struct hostapd_data *hapd, const u8 *addr, 100 enum wpa_alg alg, const u8 *addr, 109 const u8 *addr, int reason); 111 const u8 *addr, int reason); 127 int hostapd_add_sta_node(struct hostapd_data *hapd, const u8 *addr, [all …]
|
/hostap-latest/src/utils/ |
D | ip_addr.c | 14 const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, in hostapd_ip_txt() argument 17 if (buflen == 0 || addr == NULL) in hostapd_ip_txt() 20 if (addr->af == AF_INET) { in hostapd_ip_txt() 21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); in hostapd_ip_txt() 26 if (addr->af == AF_INET6) { in hostapd_ip_txt() 27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt() 36 int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr) in hostapd_parse_ip_addr() argument 39 if (inet_aton(txt, &addr->u.v4)) { in hostapd_parse_ip_addr() 40 addr->af = AF_INET; in hostapd_parse_ip_addr() 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr() [all …]
|
D | trace.h | 23 const void *addr; member 34 #define wpa_trace_add_ref(ptr, name, addr) \ argument 35 wpa_trace_add_ref_func(&(ptr)->wpa_trace_ref_##name, (addr)) 36 void wpa_trace_add_ref_func(struct wpa_trace_ref *ref, const void *addr); 37 #define wpa_trace_remove_ref(ptr, name, addr) \ argument 39 if ((addr)) \ 42 void wpa_trace_check_ref(const void *addr); 52 #define wpa_trace_add_ref(ptr, name, addr) do { } while (0) argument 53 #define wpa_trace_remove_ref(ptr, name, addr) do { } while (0) argument 54 #define wpa_trace_check_ref(addr) do { } while (0) argument
|
/hostap-latest/src/common/ |
D | ptksa_cache.c | 54 MAC2STR(e->addr)); in ptksa_cache_expire() 138 const u8 *addr, u32 cipher) in ptksa_cache_get() argument 146 if ((!addr || ether_addr_equal(e->addr, addr)) && in ptksa_cache_get() 185 i, MAC2STR(e->addr)); in ptksa_cache_list() 233 void ptksa_cache_flush(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher) in ptksa_cache_flush() argument 243 if ((!addr || ether_addr_equal(e->addr, addr)) && in ptksa_cache_flush() 247 MAC2STR(e->addr)); in ptksa_cache_flush() 278 const u8 *addr, u32 cipher, in ptksa_cache_add() argument 289 if (!ptksa || !ptk || !addr || !life_time || cipher == WPA_CIPHER_NONE) in ptksa_cache_add() 293 ptksa_cache_flush(ptksa, addr, cipher); in ptksa_cache_add() [all …]
|
/hostap-latest/src/eap_common/ |
D | eap_sim_common.c | 34 const unsigned char *addr[5]; in eap_sim_derive_mk() local 37 addr[0] = identity; in eap_sim_derive_mk() 39 addr[1] = kc; in eap_sim_derive_mk() 41 addr[2] = nonce_mt; in eap_sim_derive_mk() 43 addr[3] = ver_list; in eap_sim_derive_mk() 45 addr[4] = sel_ver; in eap_sim_derive_mk() 51 sha1_vector(5, addr, len, mk); in eap_sim_derive_mk() 59 const u8 *addr[3]; in eap_aka_derive_mk() local 62 addr[0] = identity; in eap_aka_derive_mk() 64 addr[1] = ik; in eap_aka_derive_mk() [all …]
|
D | eap_peap_common.c | 24 const unsigned char *addr[5]; in peap_prfplus() local 27 addr[0] = hash; in peap_prfplus() 29 addr[1] = (unsigned char *) label; in peap_prfplus() 31 addr[2] = seed; in peap_prfplus() 46 addr[3] = &counter; in peap_prfplus() 48 addr[4] = extra; in peap_prfplus() 62 addr[3] = extra; in peap_prfplus() 64 addr[4] = &counter; in peap_prfplus() 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) in peap_prfplus()
|
/hostap-latest/src/crypto/ |
D | crypto_nettle.c | 52 const u8 *addr[], const size_t *len, u8 *mac) in nettle_digest_vector() argument 65 alg->update(ctx, len[i], addr[i]); in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_gnutls.c | 21 const u8 *addr[], const size_t *len, u8 *mac) in gnutls_digest_vector() argument 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac); in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac); in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac); in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | ms_funcs.c | 85 const unsigned char *addr[3]; in challenge_hash() local 88 addr[0] = peer_challenge; in challenge_hash() 90 addr[1] = auth_challenge; in challenge_hash() 92 addr[2] = username; in challenge_hash() 95 if (sha1_vector(3, addr, len, hash)) in challenge_hash() 333 const unsigned char *addr[3]; in get_master_key() local 337 addr[0] = password_hash_hash; in get_master_key() 338 addr[1] = nt_response; in get_master_key() 339 addr[2] = magic1; in get_master_key() 341 if (sha1_vector(3, addr, len, hash)) in get_master_key() [all …]
|
D | crypto_module_tests.c | 89 const u8 *addr[3]; in test_siv() local 93 addr[0] = ad; in test_siv() 97 1, addr, len, out)) { in test_siv() 108 1, addr, len, out)) { in test_siv() 119 addr[0] = ad1_2; in test_siv() 121 addr[1] = ad2_2; in test_siv() 123 addr[2] = nonce_2; in test_siv() 128 3, addr, len, out)) { in test_siv() 139 3, addr, len, out)) { in test_siv() 227 const u8 *addr[3]; in test_omac1_vector() local [all …]
|
/hostap-latest/src/wps/ |
D | wps_upnp_event.c | 53 struct subscr_addr *addr; /* address to connect to */ member 133 "for %s", e->addr->domain_and_port); in event_retry() 150 buf = wpabuf_alloc(1000 + os_strlen(e->addr->path) + in event_build_message() 154 wpabuf_printf(buf, "NOTIFY %s HTTP/1.1\r\n", e->addr->path); in event_build_message() 156 wpabuf_printf(buf, "HOST: %s\r\n", e->addr->domain_and_port); in event_build_message() 178 e->addr->num_failures++; in event_addr_failure() 181 e, e->addr->domain_and_port, e->addr->num_failures); in event_addr_failure() 183 if (e->addr->num_failures < MAX_FAILURES) { in event_addr_failure() 194 "address %s due to errors", s, e->addr->domain_and_port); in event_addr_failure() 195 dl_list_del(&e->addr->list); in event_addr_failure() [all …]
|
/hostap-latest/src/radius/ |
D | radius.c | 365 struct in_addr addr; in radius_msg_dump_attr() local 366 os_memcpy(&addr, pos, 4); in radius_msg_dump_attr() 368 inet_ntoa(addr)); in radius_msg_dump_attr() 379 struct in6_addr *addr = (struct in6_addr *) pos; in radius_msg_dump_attr() local 380 atxt = inet_ntop(AF_INET6, addr, buf, sizeof(buf)); in radius_msg_dump_attr() 489 const u8 *addr[4]; in radius_msg_finish_srv() local 504 addr[0] = (u8 *) msg->hdr; in radius_msg_finish_srv() 506 addr[1] = req_authenticator; in radius_msg_finish_srv() 508 addr[2] = wpabuf_head_u8(msg->buf) + sizeof(struct radius_hdr); in radius_msg_finish_srv() 510 addr[3] = secret; in radius_msg_finish_srv() [all …]
|