/external/wpa_supplicant/ |
D | wpa.c | 279 if (os_memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN) == 0) in wpa_selector_to_bitfield() 281 if (os_memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN) == 0) in wpa_selector_to_bitfield() 283 if (os_memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN) == 0) in wpa_selector_to_bitfield() 285 if (os_memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN) == 0) in wpa_selector_to_bitfield() 287 if (os_memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN) == 0) in wpa_selector_to_bitfield() 295 if (os_memcmp(s, WPA_AUTH_KEY_MGMT_UNSPEC_802_1X, WPA_SELECTOR_LEN) == in wpa_key_mgmt_to_bitfield() 298 if (os_memcmp(s, WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X, WPA_SELECTOR_LEN) in wpa_key_mgmt_to_bitfield() 301 if (os_memcmp(s, WPA_AUTH_KEY_MGMT_NONE, WPA_SELECTOR_LEN) == 0) in wpa_key_mgmt_to_bitfield() 310 if (os_memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN) == 0) in rsn_selector_to_bitfield() 312 if (os_memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN) == 0) in rsn_selector_to_bitfield() [all …]
|
D | events.c | 395 os_memcmp(bss->ssid, ssid->ssid, in wpa_supplicant_select_bss() 402 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) in wpa_supplicant_select_bss() 444 os_memcmp(bss->ssid, ssid->ssid, in wpa_supplicant_select_bss() 452 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) in wpa_supplicant_select_bss() 549 (os_memcmp(selected->bssid, wpa_s->bssid, ETH_ALEN) != 0 && in wpa_supplicant_event_scan_results() 551 os_memcmp(selected->bssid, wpa_s->pending_bssid, in wpa_supplicant_event_scan_results() 618 (os_memcmp(&p[2], "\x00\x50\xF2\x01\x01\x00", 6) == 0)) || in wpa_supplicant_event_associnfo() 648 os_memcmp(&p[2], "\x00\x50\xF2\x01\x01\x00", 6) == 0) { in wpa_supplicant_event_associnfo() 683 os_memcmp(bssid, wpa_s->bssid, ETH_ALEN) != 0)) { in wpa_supplicant_event_assoc() 759 if (os_memcmp(bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0) in wpa_supplicant_event_disassoc()
|
D | preauth.c | 71 os_memcmp(sm->preauth_bssid, "\x00\x00\x00\x00\x00\x00", in rsn_preauth_receive() 73 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive() 318 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 376 if (os_memcmp(cand->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() 451 os_memcmp(r->ssid, sm->cur_ssid->ssid, in rsn_preauth_scan_results() 455 if (os_memcmp(r->bssid, sm->bssid, ETH_ALEN) == 0) in rsn_preauth_scan_results()
|
D | pmksa_cache.c | 186 if (os_memcmp(aa, pos->aa, ETH_ALEN) == 0) { in pmksa_cache_add() 188 os_memcmp(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add() 189 os_memcmp(pos->pmkid, entry->pmkid, PMKID_LEN) == in pmksa_cache_add() 294 if ((aa == NULL || os_memcmp(entry->aa, aa, ETH_ALEN) == 0) && in pmksa_cache_get() 296 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0)) in pmksa_cache_get()
|
D | os.h | 266 int os_memcmp(const void *s1, const void *s2, size_t n); 401 #ifndef os_memcmp 402 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) macro
|
D | mlme.c | 1082 if (!adhoc && os_memcmp(wpa_s->bssid, mgmt->sa, ETH_ALEN) != 0) { in ieee80211_rx_mgmt_auth() 1090 if (adhoc && os_memcmp(wpa_s->bssid, mgmt->bssid, ETH_ALEN) != 0) { in ieee80211_rx_mgmt_auth() 1202 if (os_memcmp(wpa_s->bssid, mgmt->sa, ETH_ALEN) != 0) { in ieee80211_rx_mgmt_deauth() 1245 if (os_memcmp(wpa_s->bssid, mgmt->sa, ETH_ALEN) != 0) { in ieee80211_rx_mgmt_disassoc() 1300 if (os_memcmp(wpa_s->bssid, mgmt->sa, ETH_ALEN) != 0) { in ieee80211_rx_mgmt_assoc_resp() 1453 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in ieee80211_bss_get() 1499 if (!beacon && os_memcmp(mgmt->da, wpa_s->own_addr, ETH_ALEN)) in ieee80211_bss_info() 1520 os_memcmp(mgmt->bssid, local->bssid, ETH_ALEN) == 0) { in ieee80211_bss_info() 1546 os_memcmp(mgmt->bssid, local->bssid, ETH_ALEN) == 0 && in ieee80211_bss_info() 1657 os_memcmp(bss->wpa_ie, elems.wpa, elems.wpa_len))) { in ieee80211_bss_info() [all …]
|
D | wpa_supplicant.c | 210 if (os_memcmp(wpa_s->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0) in wpa_supplicant_eapol_send() 215 os_memcmp(bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) != in wpa_supplicant_eapol_send() 388 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_blacklist_get() 446 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) { in wpa_blacklist_del() 542 if (os_memcmp(bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0) in wpa_supplicant_timeout() 1611 if (os_memcmp(wpa_s->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) != 0) in wpa_supplicant_disassociate() 1640 if (os_memcmp(wpa_s->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) != 0) in wpa_supplicant_deauthenticate() 1723 if (os_memcmp(results[i].bssid, wpa_s->bssid, ETH_ALEN) != 0) in wpa_get_beacon_ie() 1727 os_memcmp(results[i].ssid, ssid->ssid, ssid->ssid_len) in wpa_get_beacon_ie() 1811 os_memcmp(ssid, entry->ssid, ssid_len) == 0) || wired) && in wpa_supplicant_get_ssid() [all …]
|
D | os_none.c | 142 int os_memcmp(const void *s1, const void *s2, size_t n) in os_memcmp() function
|
D | eap_gpsk.c | 401 if (os_memcmp(pos, data->rand_peer, EAP_GPSK_RAND_LEN) != 0) { in eap_gpsk_validate_rand() 417 if (os_memcmp(pos, data->rand_server, EAP_GPSK_RAND_LEN) != 0) { in eap_gpsk_validate_rand() 456 os_memcmp(pos, data->id_server, len) != 0) { in eap_gpsk_validate_id_server() 552 if (os_memcmp(mic, pos, miclen) != 0) { in eap_gpsk_validate_gpsk_3_mic()
|
D | eap_gtc.c | 72 (len < 10 || os_memcmp(pos, "CHALLENGE=", 10) != 0)) { in eap_gtc_process()
|
D | driver_madwifi.c | 213 if (addr == NULL || os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", in wpa_driver_madwifi_set_key() 261 os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN) == 0) in wpa_driver_madwifi_set_key()
|
D | ctrl_iface_udp.c | 209 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) { in wpa_supplicant_ctrl_iface_receive() 481 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) { in wpa_supplicant_global_ctrl_iface_receive()
|
D | driver_ndis.c | 755 os_memcmp(pos + 2, "\x00\x50\xf2\x01", 4) == 0) { in wpa_driver_ndis_get_ies() 913 if (addr == NULL || os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", in wpa_driver_ndis_set_key() 1135 if (os_memcmp(entry->bssid, bssid, ETH_ALEN) == 0) in wpa_driver_ndis_add_pmkid() 1176 if (os_memcmp(entry->bssid, bssid, ETH_ALEN) == 0 && in wpa_driver_ndis_remove_pmkid() 1177 os_memcmp(entry->pmkid, pmkid, 16) == 0) { in wpa_driver_ndis_remove_pmkid() 1302 if (os_memcmp(drv->bssid, bss->MacAddress, ETH_ALEN) == 0 && in wpa_driver_ndis_get_associnfo() 1339 if (os_memcmp(drv->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) in wpa_driver_ndis_poll_timeout() 1346 if (os_memcmp(drv->bssid, bssid, ETH_ALEN) != 0) { in wpa_driver_ndis_poll_timeout()
|
D | driver_broadcom.c | 243 if (os_memcmp(&wwh->snap, wl_wpa_snap_template, 6) != 0) in wpa_driver_broadcom_event_receive() 480 os_memcmp(ie->oui, WPA_OUI, 3) != 0) in wpa_driver_broadcom_get_scan_results()
|
D | driver_test.c | 665 if (os_memcmp(dest, drv->bssid, ETH_ALEN) == 0 || in wpa_driver_test_send_eapol() 796 if (os_memcmp(dest, drv->bssid, ETH_ALEN) == 0 || in wpa_driver_test_send_mlme() 800 } else if (os_memcmp(dest, "\xff\xff\xff\xff\xff\xff", ETH_ALEN) == 0) in wpa_driver_test_send_mlme()
|
D | ctrl_iface_unix.c | 89 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_detach() 120 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_level()
|
D | eap_pax.c | 306 if (os_memcmp(pos, mac, EAP_PAX_MAC_LEN) != 0) { in eap_pax_process_std_3() 442 if (os_memcmp(icv, icvbuf, EAP_PAX_ICV_LEN) != 0) { in eap_pax_process()
|
D | eap_sim.c | 516 if (os_memcmp(attr->rand, attr->rand + GSM_RAND_LEN, in eap_sim_process_challenge() 519 (os_memcmp(attr->rand, attr->rand + 2 * GSM_RAND_LEN, in eap_sim_process_challenge() 521 os_memcmp(attr->rand + GSM_RAND_LEN, in eap_sim_process_challenge()
|
D | radius_client.c | 418 os_memcmp(entry->addr, addr, ETH_ALEN) == 0) { in radius_client_list_del() 759 os_memcmp(nserv->shared_secret, oserv->shared_secret, in radius_change_server() 1025 os_memcmp(entry->addr, addr, ETH_ALEN) == 0) { in radius_client_flush_auth()
|
D | l2_packet_freebsd.c | 184 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()
|
D | os_internal.c | 277 int os_memcmp(const void *s1, const void *s2, size_t n) in os_memcmp() function
|
D | radius.c | 620 if (os_memcmp(orig, auth, MD5_MAC_LEN) != 0) { in radius_msg_verify_msg_auth() 657 if (os_memcmp(hash, msg->hdr->authenticator, MD5_MAC_LEN) != 0) { in radius_msg_verify() 956 os_memcmp(key, "leap:session-key=", 17) == 0) { in radius_msg_get_cisco_keys()
|
D | eap_leap.c | 249 if (os_memcmp(pos, expected, LEAP_RESPONSE_LEN) != 0) { in eap_leap_process_response()
|
D | eapol_test.c | 299 if (os_memcmp(pmk, e->authenticator_pmk, PMK_LEN) != 0) { in eapol_test_compare_pmk() 308 if (os_memcmp(pmk, e->authenticator_pmk, 16) != 0) { in eapol_test_compare_pmk()
|
D | tlsv1_common.c | 533 os_memcmp(hash, out_data + *out_len, hlen) != 0) { in tlsv1_record_receive()
|