/hostap-3.7.0/src/wps/ |
D | wps_er_ssdp.c | 26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local 59 for (start = buf; start && *start; start = pos) { in wps_er_ssdp_rx() 60 pos = os_strchr(start, '\n'); in wps_er_ssdp_rx() 66 if (os_strstr(start, "schemas-wifialliance-org:device:" in wps_er_ssdp_rx() 69 if (os_strstr(start, "schemas-wifialliance-org:service:" in wps_er_ssdp_rx() 72 if (os_strncasecmp(start, "LOCATION:", 9) == 0) { in wps_er_ssdp_rx() 73 start += 9; in wps_er_ssdp_rx() 74 while (*start == ' ') in wps_er_ssdp_rx() 75 start++; in wps_er_ssdp_rx() 76 location = start; in wps_er_ssdp_rx() [all …]
|
/hostap-3.7.0/src/eap_server/ |
D | tncs.c | 655 static int tncs_get_type(char *start, unsigned int *type) in tncs_get_type() argument 657 char *pos = os_strstr(start, "<Type>"); in tncs_get_type() 666 static unsigned char * tncs_get_base64(char *start, size_t *decoded_len) in tncs_get_base64() argument 671 pos = os_strstr(start, "<Base64>"); in tncs_get_base64() 780 char *buf, *start, *end, *pos, *pos2, *payload; in tncs_process_if_tnccs() local 789 start = os_strstr(buf, "<TNCCS-Batch "); in tncs_process_if_tnccs() 791 if (start == NULL || end == NULL || start > end) { in tncs_process_if_tnccs() 796 start += 13; in tncs_process_if_tnccs() 797 while (*start == ' ') in tncs_process_if_tnccs() 798 start++; in tncs_process_if_tnccs() [all …]
|
D | eap_sim_db.c | 459 char *start, *end, *pos; in eap_sim_db_sim_resp_auth() local 476 start = buf; in eap_sim_db_sim_resp_auth() 477 if (os_strncmp(start, "FAILURE", 7) == 0) { in eap_sim_db_sim_resp_auth() 488 end = os_strchr(start, ' '); in eap_sim_db_sim_resp_auth() 492 pos = os_strchr(start, ':'); in eap_sim_db_sim_resp_auth() 496 if (hexstr2bin(start, entry->u.sim.kc[num_chal], in eap_sim_db_sim_resp_auth() 500 start = pos + 1; in eap_sim_db_sim_resp_auth() 501 pos = os_strchr(start, ':'); in eap_sim_db_sim_resp_auth() 505 if (hexstr2bin(start, entry->u.sim.sres[num_chal], in eap_sim_db_sim_resp_auth() 509 start = pos + 1; in eap_sim_db_sim_resp_auth() [all …]
|
/hostap-3.7.0/src/eap_peer/ |
D | tncc.c | 606 static int tncc_get_type(char *start, unsigned int *type) in tncc_get_type() argument 608 char *pos = os_strstr(start, "<Type>"); in tncc_get_type() 617 static unsigned char * tncc_get_base64(char *start, size_t *decoded_len) in tncc_get_base64() argument 622 pos = os_strstr(start, "<Base64>"); in tncc_get_base64() 642 static enum tncc_process_res tncc_get_recommendation(char *start) in tncc_get_recommendation() argument 647 pos = os_strstr(start, "<TNCCS-Recommendation "); in tncc_get_recommendation() 688 char *buf, *start, *end, *pos, *pos2, *payload; in tncc_process_if_tnccs() local 701 start = os_strstr(buf, "<TNCCS-Batch "); in tncc_process_if_tnccs() 703 if (start == NULL || end == NULL || start > end) { in tncc_process_if_tnccs() 708 start += 13; in tncc_process_if_tnccs() [all …]
|
D | eap_tls_common.c | 1100 char *start, *pos, *buf; in eap_peer_select_phase2_methods() local 1112 start = buf = os_strdup(phase2); in eap_peer_select_phase2_methods() 1118 while (start && *start != '\0') { in eap_peer_select_phase2_methods() 1120 pos = os_strstr(start, prefix); in eap_peer_select_phase2_methods() 1123 if (start != pos && *(pos - 1) != ' ') { in eap_peer_select_phase2_methods() 1124 start = pos + prefix_len; in eap_peer_select_phase2_methods() 1128 start = pos + prefix_len; in eap_peer_select_phase2_methods() 1129 pos = os_strchr(start, ' '); in eap_peer_select_phase2_methods() 1132 method = eap_get_phase2_type(start, &vendor); in eap_peer_select_phase2_methods() 1135 "method '%s'", start); in eap_peer_select_phase2_methods() [all …]
|
D | eap_gpsk.c | 319 u8 *rpos, *start; in eap_gpsk_send_gpsk_2() local 335 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 398 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_2() 631 u8 *rpos, *start; in eap_gpsk_send_gpsk_4() local 644 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_4() 651 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_4()
|
/hostap-3.7.0/src/drivers/ |
D | driver_common.c | 177 static int wpa_check_wowlan_trigger(const char *start, const char *trigger, in wpa_check_wowlan_trigger() argument 180 if (os_strcmp(start, trigger) != 0) in wpa_check_wowlan_trigger() 195 char *start, *end, *buf; in wpa_get_wowlan_triggers() local 210 wpa_check_wowlan_trigger(start, #trigger, \ in wpa_get_wowlan_triggers() 214 start = buf; in wpa_get_wowlan_triggers() 215 while (*start != '\0') { in wpa_get_wowlan_triggers() 216 while (isblank((unsigned char) *start)) in wpa_get_wowlan_triggers() 217 start++; in wpa_get_wowlan_triggers() 218 if (*start == '\0') in wpa_get_wowlan_triggers() 220 end = start; in wpa_get_wowlan_triggers() [all …]
|
D | driver_nl80211_capa.c | 2099 static void nl80211_set_ht40_mode(struct hostapd_hw_modes *mode, int start, in nl80211_set_ht40_mode() argument 2106 if (chan->freq - 10 >= start && chan->freq + 10 <= end) in nl80211_set_ht40_mode() 2112 static void nl80211_set_ht40_mode_sec(struct hostapd_hw_modes *mode, int start, in nl80211_set_ht40_mode_sec() argument 2121 if (chan->freq - 30 >= start && chan->freq - 10 <= end) in nl80211_set_ht40_mode_sec() 2123 if (chan->freq + 10 >= start && chan->freq + 30 <= end) in nl80211_set_ht40_mode_sec() 2129 static void nl80211_reg_rule_max_eirp(u32 start, u32 end, u32 max_eirp, in nl80211_reg_rule_max_eirp() argument 2140 if ((u32) chan->freq - 10 >= start && in nl80211_reg_rule_max_eirp() 2148 static void nl80211_reg_rule_ht40(u32 start, u32 end, in nl80211_reg_rule_ht40() argument 2157 nl80211_set_ht40_mode(&results->modes[m], start, end); in nl80211_reg_rule_ht40() 2165 u32 start, end, max_bw; in nl80211_reg_rule_sec() local [all …]
|
/hostap-3.7.0/src/ap/ |
D | eap_user_db.c | 25 char *buf, *start; in set_user_methods() local 34 start = buf; in set_user_methods() 35 while (*start) { in set_user_methods() 36 char *pos3 = os_strchr(start, ','); in set_user_methods() 40 eap_server_get_type(start, in set_user_methods() 44 if (os_strcmp(start, "TTLS-PAP") == 0) { in set_user_methods() 48 if (os_strcmp(start, "TTLS-CHAP") == 0) { in set_user_methods() 52 if (os_strcmp(start, "TTLS-MSCHAP") == 0) { in set_user_methods() 56 if (os_strcmp(start, "TTLS-MSCHAPV2") == 0) { in set_user_methods() 61 start); in set_user_methods() [all …]
|
D | p2p_hostapd.c | 33 int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start, in hostapd_p2p_set_noa() argument 37 "duration=%d", count, start, duration); in hostapd_p2p_set_noa() 48 return hostapd_driver_set_noa(hapd, count, start, duration); in hostapd_p2p_set_noa() 52 hapd->noa_start = start; in hostapd_p2p_set_noa() 58 return hostapd_driver_set_noa(hapd, count, start, duration); in hostapd_p2p_set_noa()
|
D | preauth_auth.c | 151 char *tmp, *start, *end; in rsn_preauth_iface_init() local 159 start = tmp; in rsn_preauth_iface_init() 161 while (*start == ' ') in rsn_preauth_iface_init() 162 start++; in rsn_preauth_iface_init() 163 if (*start == '\0') in rsn_preauth_iface_init() 165 end = os_strchr(start, ' '); in rsn_preauth_iface_init() 169 if (rsn_preauth_iface_add(hapd, start)) { in rsn_preauth_iface_init() 176 start = end + 1; in rsn_preauth_iface_init()
|
D | ap_drv_ops.c | 128 u8 *start, *p; in hostapd_build_ap_extra_ies() local 129 start = wpabuf_put(beacon, 0); in hostapd_build_ap_extra_ies() 130 p = hostapd_eid_p2p_manage(hapd, start); in hostapd_build_ap_extra_ies() 131 wpabuf_put(beacon, p - start); in hostapd_build_ap_extra_ies() 135 u8 *start, *p; in hostapd_build_ap_extra_ies() local 136 start = wpabuf_put(proberesp, 0); in hostapd_build_ap_extra_ies() 137 p = hostapd_eid_p2p_manage(hapd, start); in hostapd_build_ap_extra_ies() 138 wpabuf_put(proberesp, p - start); in hostapd_build_ap_extra_ies() 154 u8 *start, *p; in hostapd_build_ap_extra_ies() local 155 start = wpabuf_put(assocresp, 0); in hostapd_build_ap_extra_ies() [all …]
|
/hostap-3.7.0/wpa_supplicant/ |
D | mbo.c | 117 u8 start, u8 end) in wpas_mbo_non_pref_chan_attr_body() argument 121 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].oper_class); in wpas_mbo_non_pref_chan_attr_body() 123 for (i = start; i < end; i++) in wpas_mbo_non_pref_chan_attr_body() 126 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].preference); in wpas_mbo_non_pref_chan_attr_body() 127 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].reason); in wpas_mbo_non_pref_chan_attr_body() 139 struct wpabuf *mbo, u8 start, u8 end) in wpas_mbo_non_pref_chan_attr() argument 141 size_t size = end - start + 3; in wpas_mbo_non_pref_chan_attr() 147 wpas_mbo_non_pref_chan_attr_body(wpa_s, mbo, start, end); in wpas_mbo_non_pref_chan_attr() 161 struct wpabuf *mbo, u8 start, in wpas_mbo_non_pref_chan_subelement() argument 164 size_t size = end - start + 7; in wpas_mbo_non_pref_chan_subelement() [all …]
|
D | config.c | 658 char *start, *end, *buf; in wpa_config_parse_proto() local 663 start = buf; in wpa_config_parse_proto() 665 while (*start != '\0') { in wpa_config_parse_proto() 666 while (*start == ' ' || *start == '\t') in wpa_config_parse_proto() 667 start++; in wpa_config_parse_proto() 668 if (*start == '\0') in wpa_config_parse_proto() 670 end = start; in wpa_config_parse_proto() 675 if (os_strcmp(start, "WPA") == 0) in wpa_config_parse_proto() 677 else if (os_strcmp(start, "RSN") == 0 || in wpa_config_parse_proto() 678 os_strcmp(start, "WPA2") == 0) in wpa_config_parse_proto() [all …]
|
D | bssid_ignore.c | 76 e->start = now; in wpa_bssid_ignore_add() 100 e->start = now; in wpa_bssid_ignore_add() 159 if (os_reltime_expired(&now, &e->start, e->timeout_secs)) in wpa_bssid_ignore_is_listed() 201 if (os_reltime_expired(&now, &e->start, in wpa_bssid_ignore_update()
|
/hostap-3.7.0/wpa_supplicant/wpa_gui-qt4/ |
D | wpagui.cpp | 166 timer->start(1000); in WpaGui() 496 char buf[2048], *start, *end, *pos; in updateStatus() local 539 start = buf; in updateStatus() 540 while (*start) { in updateStatus() 542 end = strchr(start, '\n'); in updateStatus() 545 end = start; in updateStatus() 551 pos = strchr(start, '='); in updateStatus() 554 if (strcmp(start, "bssid") == 0) { in updateStatus() 557 } else if (strcmp(start, "ssid") == 0) { in updateStatus() 566 } else if (strcmp(start, "ip_address") == 0) { in updateStatus() [all …]
|
/hostap-3.7.0/src/common/ |
D | wpa_common.c | 2486 u8 *start, *end, *rpos, *rend; in wpa_insert_pmkid() local 2489 start = ies; in wpa_insert_pmkid() 2492 while (start < end) { in wpa_insert_pmkid() 2493 if (*start == WLAN_EID_RSN) in wpa_insert_pmkid() 2495 start += 2 + start[1]; in wpa_insert_pmkid() 2497 if (start >= end) { in wpa_insert_pmkid() 2502 start, 2 + start[1]); in wpa_insert_pmkid() 2505 rpos = start + 2; in wpa_insert_pmkid() 2506 rend = rpos + start[1]; in wpa_insert_pmkid() 2521 start[1] += 2; in wpa_insert_pmkid() [all …]
|
/hostap-3.7.0/tests/hwsim/ |
D | test_autoscan.py | 27 start = os.times()[4] 32 times[i] = stop - start 68 start = os.times()[4] 73 times[i] = stop - start
|
/hostap-3.7.0/tests/remote/ |
D | run-tests.py | 341 start = datetime.now() 351 logger.warning("PASS (" + res + ") - " + str((end - start).total_seconds()) + "s") 357 logger.warning("SKIP (" + str(e) + ") - " + str((end - start).total_seconds()) + "s") 360 logger.warning("FAILED (" + str(e) + ") - " + str((end - start).total_seconds()) + "s") 365 logger.warning("FAILED - " + str((end - start).total_seconds()) + "s") 373 start = datetime.now() 378 logger.warning("PASS (" + res + ") - " + str((end - start).total_seconds()) + "s") 384 logger.warning("SKIP (" + str(e) + ") - " + str((end - start).total_seconds()) + "s") 388 logger.warning("FAILED (" + str(e) + ") - " + str((end - start).total_seconds()) + "s") 393 logger.warning("FAILED - " + str((end - start).total_seconds()) + "s")
|
D | rutils.py | 59 trace_start_stop(host, setup_params, start=True) 63 trace_start_stop(host, setup_params, start=False) 65 def trace_start_stop(host, setup_params, start): argument 71 if start: 84 perf_start_stop(host, setup_params, start=True) 88 perf_start_stop(host, setup_params, start=False) 90 def perf_start_stop(host, setup_params, start): argument 96 if start:
|
/hostap-3.7.0/wpadebug/src/w1/fi/wpadebug/ |
D | InputUri.java | 42 public void onTextChanged(CharSequence s, int start, int before, in onCreate() 53 public void beforeTextChanged(CharSequence s, int start, in onCreate() 82 }).start(); in onResume()
|
/hostap-3.7.0/tests/ |
D | test-aes.c | 25 unsigned int start, end; in test_aes_perf() 31 rdtscll(start); in test_aes_perf() 35 printf(" %d", end - start); in test_aes_perf() 42 rdtscll(start); in test_aes_perf() 45 printf(" %d", end - start); in test_aes_perf()
|
/hostap-3.7.0/src/utils/ |
D | xml-utils.c | 126 char *buf, *buf2, *start; in node_from_file() local 140 start = os_strstr(buf, "<!DOCTYPE "); in node_from_file() 141 if (start) { in node_from_file() 142 char *pos = start + 1; in node_from_file() 158 os_memset(start, ' ', pos - start); in node_from_file()
|
/hostap-3.7.0/src/eap_common/ |
D | eap_ttls.h | 31 #define AVP_PAD(start, pos) \ argument 34 __pad = (4 - (((pos) - (start)) & 3)) & 3; \
|
/hostap-3.7.0/hostapd/ |
D | config_file.c | 301 char buf[512], *pos, *start, *pos2; in hostapd_config_read_eap_user() local 381 start = pos; in hostapd_config_read_eap_user() 391 user->identity = os_memdup(start, pos - start); in hostapd_config_read_eap_user() 397 user->identity_len = pos - start; in hostapd_config_read_eap_user() 414 start = pos; in hostapd_config_read_eap_user() 424 while (*start) { in hostapd_config_read_eap_user() 425 char *pos3 = os_strchr(start, ','); in hostapd_config_read_eap_user() 431 start, in hostapd_config_read_eap_user() 437 if (os_strcmp(start, "TTLS-PAP") == 0) { in hostapd_config_read_eap_user() 441 if (os_strcmp(start, "TTLS-CHAP") == 0) { in hostapd_config_read_eap_user() [all …]
|