Home
last modified time | relevance | path

Searched refs:os_memcmp (Results 1 – 25 of 42) sorted by relevance

12

/external/wpa_supplicant/
Dwpa.c279 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 …]
Devents.c395 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()
Dpreauth.c71 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()
Dpmksa_cache.c186 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()
Dos.h266 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
Dmlme.c1082 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 …]
Dwpa_supplicant.c210 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 …]
Dos_none.c142 int os_memcmp(const void *s1, const void *s2, size_t n) in os_memcmp() function
Deap_gpsk.c401 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()
Deap_gtc.c72 (len < 10 || os_memcmp(pos, "CHALLENGE=", 10) != 0)) { in eap_gtc_process()
Ddriver_madwifi.c213 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()
Dctrl_iface_udp.c209 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()
Ddriver_ndis.c755 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()
Ddriver_broadcom.c243 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()
Ddriver_test.c665 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()
Dctrl_iface_unix.c89 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()
Deap_pax.c306 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()
Deap_sim.c516 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()
Dradius_client.c418 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()
Dl2_packet_freebsd.c184 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()
Dos_internal.c277 int os_memcmp(const void *s1, const void *s2, size_t n) in os_memcmp() function
Dradius.c620 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()
Deap_leap.c249 if (os_memcmp(pos, expected, LEAP_RESPONSE_LEN) != 0) { in eap_leap_process_response()
Deapol_test.c299 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()
Dtlsv1_common.c533 os_memcmp(hash, out_data + *out_len, hlen) != 0) { in tlsv1_record_receive()

12