Home
last modified time | relevance | path

Searched refs:os_strncmp (Results 1 – 25 of 56) sorted by relevance

123

/NextBSD/contrib/wpa/wpa_supplicant/
HDctrl_iface.c117 if (os_strncmp(pos, "bssid ", 6) == 0) { in set_disallow_aps()
138 } else if (os_strncmp(pos, "ssid ", 5) == 0) { in set_disallow_aps()
904 } else if (os_strncmp(cmd, "p2p_dev_addr=", 13) == 0) { in wpa_supplicant_ctrl_iface_wps_pbc()
2112 if (os_strncmp(cmd, "clear", 5) == 0) { in wpa_supplicant_ctrl_iface_blacklist()
2204 if (cmd != NULL && os_strncmp(cmd, "LAST_ID=", 8) == 0) { in wpa_supplicant_ctrl_iface_list_networks()
2717 if (os_strncmp(cmd, "any", 3) == 0) { in wpa_supplicant_ctrl_iface_select_network()
3241 if (os_strncmp(cmd, "sp_fqdn=", 8) == 0) { in wpa_supplicant_ctrl_iface_remove_cred()
3262 if (os_strncmp(cmd, "provisioning_sp=", 16) == 0) { in wpa_supplicant_ctrl_iface_remove_cred()
4325 if (os_strncmp(cmd, "RANGE=", 6) == 0) { in wpa_supplicant_ctrl_iface_bss()
4326 if (os_strncmp(cmd + 6, "ALL", 3) == 0) { in wpa_supplicant_ctrl_iface_bss()
[all …]
HDctrl_iface_unix.c87 if (len >= 5 && os_strncmp(buf, "PONG\n", 5) == 0) in wpas_ctrl_sock_debug()
220 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) { in wpa_supplicant_ctrl_iface_receive()
298 if (os_strncmp(pbuf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_path()
391 if (os_strncmp(buf, "DIR=", 4) == 0) { in wpas_ctrl_iface_open_sock()
595 } else if (os_strncmp(wpa_s->global->params.ctrl_interface, in wpa_supplicant_ctrl_iface_init()
597 os_strncmp(wpa_s->global->params.ctrl_interface, in wpa_supplicant_ctrl_iface_init()
702 if (os_strncmp(buf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_deinit()
978 if (os_strncmp(ctrl, "@android:", 9) == 0) { in wpas_global_ctrl_iface_open_sock()
991 if (os_strncmp(ctrl, "@abstract:", 10) != 0) { in wpas_global_ctrl_iface_open_sock()
1020 if (os_strncmp(ctrl, "@abstract:", 10) == 0) { in wpas_global_ctrl_iface_open_sock()
HDctrl_iface_udp.c262 if (os_strncmp(buf, "COOKIE=", 7) != 0) {
296 } else if (os_strncmp(pos, "LEVEL ", 6) == 0) {
584 if (os_strncmp(buf, "COOKIE=", 7) != 0) {
HDbgscan_learn.c118 os_strncmp(buf, "wpa_supplicant-bgscan-learn\n", 28) != 0) { in bgscan_learn_load()
126 if (os_strncmp(buf, "BSS ", 4) == 0) { in bgscan_learn_load()
141 if (os_strncmp(buf, "NEIGHBOR ", 9) == 0) { in bgscan_learn_load()
HDbgscan.c56 if (os_strncmp(name, bgscan_modules[i]->name, nlen) == 0) { in bgscan_init()
HDautoscan.c70 if (os_strncmp(name, autoscan_modules[i]->name, nlen) == 0) { in autoscan_init()
/NextBSD/contrib/wpa/wpa_supplicant/dbus/
HDdbus_new_helpers.c32 if (os_strncmp(dsc->dbus_interface, interface, in fill_dict_with_properties()
142 return !os_strncmp(registered_sig, sig, MAX_SIG_LEN); in is_signature_correct()
253 if (!os_strncmp(property_dsc->dbus_property, property, in properties_get_or_set()
255 !os_strncmp(property_dsc->dbus_interface, interface, in properties_get_or_set()
269 if (os_strncmp(WPA_DBUS_PROPERTIES_GET, method, in properties_get_or_set()
291 if (!os_strncmp(WPA_DBUS_PROPERTIES_GET, method, in properties_handler()
293 !os_strncmp(WPA_DBUS_PROPERTIES_SET, method, in properties_handler()
295 !os_strncmp(WPA_DBUS_PROPERTIES_GETALL, method, in properties_handler()
306 if (!os_strncmp(WPA_DBUS_PROPERTIES_GETALL, method, in properties_handler()
333 if (!os_strncmp(method_dsc->dbus_method, method, in msg_method_handler()
[all …]
/NextBSD/contrib/wpa/hostapd/
HDctrl_iface.c1705 if (os_strncmp(cmd, "ifname=", 7) == 0) { in hostapd_ctrl_iface_data_test_frame()
2057 } else if (os_strncmp(buf, "RELOG", 5) == 0) { in hostapd_ctrl_iface_receive_process()
2094 } else if (os_strncmp(buf, "MIB ", 4) == 0) { in hostapd_ctrl_iface_receive_process()
2100 } else if (os_strncmp(buf, "STA ", 4) == 0) { in hostapd_ctrl_iface_receive_process()
2103 } else if (os_strncmp(buf, "STA-NEXT ", 9) == 0) { in hostapd_ctrl_iface_receive_process()
2112 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) { in hostapd_ctrl_iface_receive_process()
2116 } else if (os_strncmp(buf, "NEW_STA ", 8) == 0) { in hostapd_ctrl_iface_receive_process()
2119 } else if (os_strncmp(buf, "DEAUTHENTICATE ", 15) == 0) { in hostapd_ctrl_iface_receive_process()
2122 } else if (os_strncmp(buf, "DISASSOCIATE ", 13) == 0) { in hostapd_ctrl_iface_receive_process()
2130 } else if (os_strncmp(buf, "SA_QUERY ", 9) == 0) { in hostapd_ctrl_iface_receive_process()
[all …]
HDconfig_file.c224 if (os_strncmp(fname, "sqlite:", 7) == 0) { in hostapd_config_read_eap_user()
260 if (user && os_strncmp(buf, "radius_accept_attr=", 19) == 0) { in hostapd_config_read_eap_user()
407 if (os_strncmp(pos, "[ver=0]", 7) == 0) { in hostapd_config_read_eap_user()
412 if (os_strncmp(pos, "[ver=1]", 7) == 0) { in hostapd_config_read_eap_user()
417 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
444 } else if (os_strncmp(pos, "hash:", 5) == 0) { in hostapd_config_read_eap_user()
497 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
924 if (os_strncmp(pos, "data", 4) == 0 && in hostapd_config_tx_queue()
928 } else if (os_strncmp(pos, "after_beacon_", 13) == 0 || in hostapd_config_tx_queue()
929 os_strncmp(pos, "beacon_", 7) == 0) { in hostapd_config_tx_queue()
[all …]
HDhlr_auc_gw.c922 if (os_strncmp(cmd, "SIM-REQ-AUTH ", 13) == 0) in process_cmd()
925 if (os_strncmp(cmd, "GSM-AUTH-REQ ", 13) == 0) in process_cmd()
928 if (os_strncmp(cmd, "AKA-REQ-AUTH ", 13) == 0) in process_cmd()
931 if (os_strncmp(cmd, "AKA-AUTS ", 9) == 0) in process_cmd()
/NextBSD/contrib/wpa/src/eap_peer/
HDeap_wsc.c91 if (os_strncmp(pos + 9, "OPEN", 4) == 0) in eap_wsc_new_ap_settings()
93 else if (os_strncmp(pos + 9, "WPAPSK", 6) == 0) in eap_wsc_new_ap_settings()
95 else if (os_strncmp(pos + 9, "WPA2PSK", 7) == 0) in eap_wsc_new_ap_settings()
107 if (os_strncmp(pos + 9, "NONE", 4) == 0) in eap_wsc_new_ap_settings()
110 else if (os_strncmp(pos + 9, "WEP", 3) == 0) in eap_wsc_new_ap_settings()
113 else if (os_strncmp(pos + 9, "TKIP", 4) == 0) in eap_wsc_new_ap_settings()
115 else if (os_strncmp(pos + 9, "CCMP", 4) == 0) in eap_wsc_new_ap_settings()
204 os_strncmp((const char *) cfg.pin, "nfc-pw", 6) == 0) { in eap_wsc_init()
HDeap_mschapv2.c413 if (pos && os_strncmp(pos, "E=", 2) == 0) { in eap_mschapv2_failure_txt()
423 if (pos && os_strncmp(pos, "R=", 2) == 0) { in eap_mschapv2_failure_txt()
433 if (pos && os_strncmp(pos, "C=", 2) == 0) { in eap_mschapv2_failure_txt()
461 if (pos && os_strncmp(pos, "V=", 2) == 0) { in eap_mschapv2_failure_txt()
471 if (pos && os_strncmp(pos, "M=", 2) == 0) { in eap_mschapv2_failure_txt()
HDeap_fast_pac.c264 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_init_pac_data()
538 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_write_pac()
763 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_load_pac_bin()
/NextBSD/contrib/wpa/src/utils/
HDos_none.c187 return os_strncmp(s1, s2, n); in os_strncasecmp()
209 int os_strncmp(const char *s1, const char *s2, size_t n) in os_strncmp() function
HDos.h443 int os_strncmp(const char *s1, const char *s2, size_t n);
538 #ifndef os_strncmp
539 #define os_strncmp(s1, s2, n) strncmp((s1), (s2), (n)) macro
HDos_internal.c371 return os_strncmp(s1, s2, n); in os_strncasecmp()
414 int os_strncmp(const char *s1, const char *s2, size_t n) in os_strncmp() function
492 if (os_strncmp(haystack, needle, len) == 0) in os_strstr()
HDext_password_test.c58 if (os_strncmp(pos, name, nlen) == 0 && pos[nlen] == '=') { in ext_password_test_get()
HDbrowser-system.c43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
HDbrowser-android.c43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
HDbrowser-wpadebug.c43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
/NextBSD/contrib/wpa/src/wps/
HDwps_er_ssdp.c49 if (os_strncmp(buf, "HTTP/1.1 200 OK", 15) != 0) in wps_er_ssdp_rx()
53 if (os_strncmp(buf, "NOTIFY ", 7) != 0) in wps_er_ssdp_rx()
HDhttp_client.c248 if (os_strncmp(url, "http://", 7) != 0) in http_client_url()
329 if (os_strncmp(url, "http://", 7) == 0) in http_link_update()
332 if (os_strncmp(base, "http://", 7) != 0) in http_link_update()
/NextBSD/contrib/wpa/src/common/
HDieee802_11_common.c506 if (os_strncmp(pos, "be_", 3) == 0) { in hostapd_config_wmm_ac()
509 } else if (os_strncmp(pos, "bk_", 3) == 0) { in hostapd_config_wmm_ac()
512 } else if (os_strncmp(pos, "vi_", 3) == 0) { in hostapd_config_wmm_ac()
515 } else if (os_strncmp(pos, "vo_", 3) == 0) { in hostapd_config_wmm_ac()
/NextBSD/contrib/wpa/src/crypto/
HDtls_openssl.c1249 if (os_strncmp(pos, "EMAIL:", 6) == 0) { in tls_match_altsubject()
1252 } else if (os_strncmp(pos, "DNS:", 4) == 0) { in tls_match_altsubject()
1255 } else if (os_strncmp(pos, "URI:", 4) == 0) { in tls_match_altsubject()
1265 if (os_strncmp(end + 1, "EMAIL:", 6) == 0 || in tls_match_altsubject()
1266 os_strncmp(end + 1, "DNS:", 4) == 0 || in tls_match_altsubject()
1267 os_strncmp(end + 1, "URI:", 4) == 0) in tls_match_altsubject()
1768 if (ca_cert && os_strncmp(ca_cert, "probe://", 8) == 0) { in tls_connection_ca_cert()
1776 if (ca_cert && os_strncmp(ca_cert, "hash://", 7) == 0) { in tls_connection_ca_cert()
1779 if (os_strncmp(pos, "server/sha256/", 14) != 0) { in tls_connection_ca_cert()
1840 if (ca_cert && os_strncmp("keystore://", ca_cert, 11) == 0) { in tls_connection_ca_cert()
[all …]
/NextBSD/contrib/wpa/src/ap/
HDwps_hostapd.c274 return os_strncmp(str, start, os_strlen(start)) == 0; in str_starts()
583 if (os_strncmp(buf, "bss=", 4) == 0) in hapd_wps_cred_cb()
1673 if (os_strncmp(auth, "OPEN", 4) == 0) in hostapd_wps_config_ap()
1675 else if (os_strncmp(auth, "WPAPSK", 6) == 0) in hostapd_wps_config_ap()
1677 else if (os_strncmp(auth, "WPA2PSK", 7) == 0) in hostapd_wps_config_ap()
1683 if (os_strncmp(encr, "NONE", 4) == 0) in hostapd_wps_config_ap()
1685 else if (os_strncmp(encr, "TKIP", 4) == 0) in hostapd_wps_config_ap()
1687 else if (os_strncmp(encr, "CCMP", 4) == 0) in hostapd_wps_config_ap()

123