Home
last modified time | relevance | path

Searched refs:pos2 (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/wpa/src/ap/
H A Dmbo_ap.c132 char *pos2 = pos; in mbo_ap_get_info() local
134 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info()
139 if (os_snprintf_error(end - pos2, ret)) in mbo_ap_get_info()
141 pos2 += ret; in mbo_ap_get_info()
144 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info()
148 if (os_snprintf_error(end - pos2, ret)) { in mbo_ap_get_info()
149 pos2 = NULL; in mbo_ap_get_info()
152 pos2 += ret; in mbo_ap_get_info()
155 if (!pos2) in mbo_ap_get_info()
157 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info()
[all …]
H A Dctrl_iface_ap.c1117 const char *pos2 = os_strstr(pos, " " #str "="); \ in hostapd_parse_csa_settings()
1118 if (pos2) { \ in hostapd_parse_csa_settings()
1119 pos2 += sizeof(" " #str "=") - 1; \ in hostapd_parse_csa_settings()
1120 settings->freq_params.str = atoi(pos2); \ in hostapd_parse_csa_settings()
1126 const char *pos2 = os_strstr(pos, " " #str "="); \ in hostapd_parse_csa_settings()
1127 if (pos2) { \ in hostapd_parse_csa_settings()
1128 pos2 += sizeof(" " #str "=") - 1; \ in hostapd_parse_csa_settings()
1129 settings->str = atoi(pos2); \ in hostapd_parse_csa_settings()
1175 char *pos, *pos2; in hostapd_ctrl_iface_pmksa_add() local
1199 pos2 = os_strchr(pos, ' '); in hostapd_ctrl_iface_pmksa_add()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_er_ssdp.c26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local
82 pos2 = os_strstr(start, "max-age="); in wps_er_ssdp_rx()
83 if (pos2 == NULL) in wps_er_ssdp_rx()
85 pos2 += 8; in wps_er_ssdp_rx()
86 max_age = atoi(pos2); in wps_er_ssdp_rx()
89 pos2 = os_strstr(start, "uuid:"); in wps_er_ssdp_rx()
90 if (pos2) { in wps_er_ssdp_rx()
91 pos2 += 5; in wps_er_ssdp_rx()
92 while (*pos2 == ' ') in wps_er_ssdp_rx()
93 pos2++; in wps_er_ssdp_rx()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dext_password_test.c47 char *pos, *pos2; in ext_password_test_get() local
61 pos2 = pos; in ext_password_test_get()
62 while (*pos2 != '|' && *pos2 != '\0') in ext_password_test_get()
63 pos2++; in ext_password_test_get()
64 buf = ext_password_alloc(pos2 - pos); in ext_password_test_get()
67 wpabuf_put_data(buf, pos, pos2 - pos); in ext_password_test_get()
H A Dcommon.c786 const char *pos, *pos2, *pos3; in freq_range_list_parse() local
806 pos2 = os_strchr(pos, '-'); in freq_range_list_parse()
808 if (pos2 && (!pos3 || pos2 < pos3)) { in freq_range_list_parse()
809 pos2++; in freq_range_list_parse()
810 freq[count].max = atoi(pos2); in freq_range_list_parse()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_gtc.c108 const u8 *pos2, *end; in eap_gtc_process() local
119 pos2 = pos; in eap_gtc_process()
120 while (pos2 < end && *pos2) in eap_gtc_process()
121 pos2++; in eap_gtc_process()
122 if (pos2 == end) { in eap_gtc_process()
130 pos, pos2 - pos); in eap_gtc_process()
132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process()
143 sm->identity_len = pos2 - pos; in eap_gtc_process()
160 pos = pos2 + 1; in eap_gtc_process()
H A Dtncs.c668 char *pos, *pos2; in tncs_get_base64() local
676 pos2 = os_strstr(pos, "</Base64>"); in tncs_get_base64()
677 if (pos2 == NULL) in tncs_get_base64()
679 *pos2 = '\0'; in tncs_get_base64()
682 *pos2 = '<'; in tncs_get_base64()
780 char *buf, *start, *end, *pos, *pos2, *payload; in tncs_process_if_tnccs() local
913 pos2 = os_strstr(pos, "</XML>"); in tncs_process_if_tnccs()
914 if (pos2 == NULL) { in tncs_process_if_tnccs()
919 xmlend = pos2; in tncs_process_if_tnccs()
962 char *pos, *pos2; in tncs_parse_imv() local
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dhs20_supplicant.c864 const u8 *pos2; in hs20_osu_add_prov() local
897 pos2 = pos; in hs20_osu_add_prov()
901 while (pos - pos2 >= 4 && prov->friendly_name_count < OSU_MAX_ITEMS) { in hs20_osu_add_prov()
905 slen = pos2[0]; in hs20_osu_add_prov()
906 if (1 + slen > pos - pos2) { in hs20_osu_add_prov()
916 pos2++; in hs20_osu_add_prov()
917 os_memcpy(f->lang, pos2, 3); in hs20_osu_add_prov()
918 pos2 += 3; in hs20_osu_add_prov()
920 os_memcpy(f->text, pos2, slen); in hs20_osu_add_prov()
921 pos2 += slen; in hs20_osu_add_prov()
[all …]
H A Dctrl_iface.c1198 const char *pos2 = os_strstr(pos, " " #str "="); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1199 if (pos2) { \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1200 pos2 += sizeof(" " #str "=") - 1; \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1201 freq_params.str = atoi(pos2); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1784 char *pos, *pos2; in wpas_ctrl_nfc_get_handover_sel() local
1799 pos2 = os_strchr(pos, ' '); in wpas_ctrl_nfc_get_handover_sel()
1800 if (pos2) in wpas_ctrl_nfc_get_handover_sel()
1801 *pos2++ = '\0'; in wpas_ctrl_nfc_get_handover_sel()
1807 os_strcmp(pos, "WPS-CR") == 0, pos2); in wpas_ctrl_nfc_get_handover_sel()
1832 char *pos, *role, *type, *pos2; in wpas_ctrl_nfc_report_handover() local
[all …]
H A Dconfig_file.c89 char buf[2000], *pos, *pos2; in wpa_config_read_network() local
107 pos2 = os_strchr(pos, '='); in wpa_config_read_network()
108 if (pos2 == NULL) { in wpa_config_read_network()
115 *pos2++ = '\0'; in wpa_config_read_network()
116 if (*pos2 == '"') { in wpa_config_read_network()
117 if (os_strchr(pos2 + 1, '"') == NULL) { in wpa_config_read_network()
119 "quotation '%s'.", *line, pos2); in wpa_config_read_network()
125 if (wpa_config_set(ssid, pos, pos2, *line) < 0) { in wpa_config_read_network()
164 char buf[256], *pos, *pos2; in wpa_config_read_cred() local
179 pos2 = os_strchr(pos, '='); in wpa_config_read_cred()
[all …]
H A Dwpa_cli.c4311 char *copy = NULL, *id, *pos2; in wpa_cli_action_process() local
4351 pos2 = id = copy; in wpa_cli_action_process()
4352 while (*pos2 && *pos2 != ' ') in wpa_cli_action_process()
4353 pos2++; in wpa_cli_action_process()
4354 *pos2++ = '\0'; in wpa_cli_action_process()
4357 while (*pos2 && *pos2 != '=') in wpa_cli_action_process()
4358 pos2++; in wpa_cli_action_process()
4359 if (*pos2 == '=') in wpa_cli_action_process()
4360 pos2++; in wpa_cli_action_process()
4361 id = pos2; in wpa_cli_action_process()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Dtncc.c619 char *pos, *pos2; in tncc_get_base64() local
627 pos2 = os_strstr(pos, "</Base64>"); in tncc_get_base64()
628 if (pos2 == NULL) in tncc_get_base64()
630 *pos2 = '\0'; in tncc_get_base64()
633 *pos2 = '<'; in tncc_get_base64()
644 char *pos, *pos2, saved; in tncc_get_recommendation() local
660 pos2 = pos; in tncc_get_recommendation()
661 while (*pos2 != '\0' && *pos2 != '"' && *pos2 != '>') in tncc_get_recommendation()
662 pos2++; in tncc_get_recommendation()
664 if (*pos2 == '\0') in tncc_get_recommendation()
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext.cpp109 std::string::size_type pos2 = str.find_last_not_of(" \t"); in trim() local
111 if (pos1 == std::string::npos && pos2 == std::string::npos) in trim()
114 return str.substr(0, str.length() - pos2); in trim()
115 else if (pos2 == std::string::npos) in trim()
118 return str.substr(pos1, pos2 - pos1 + 1); in trim()
/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c278 char buf[200], *pos, *pos2; in read_gsm_triplets() local
315 pos2 = NULL; in read_gsm_triplets()
316 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
325 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
333 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
342 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
390 char buf[200], *pos, *pos2; in read_milenage() local
427 pos2 = NULL; in read_milenage()
428 pos = str_token(buf, " ", &pos2); in read_milenage()
437 pos = str_token(buf, " ", &pos2); in read_milenage()
[all …]
H A Dconfig_file.c34 char buf[128], *pos, *pos2, *pos3; in hostapd_config_read_vlan_file() local
76 pos2 = pos; in hostapd_config_read_vlan_file()
77 while (*pos2 != ' ' && *pos2 != '\t' && *pos2 != '\0') in hostapd_config_read_vlan_file()
78 pos2++; in hostapd_config_read_vlan_file()
80 if (*pos2 != '\0') in hostapd_config_read_vlan_file()
81 *(pos2++) = '\0'; in hostapd_config_read_vlan_file()
90 while (*pos2 == ' ' || *pos2 == '\t') in hostapd_config_read_vlan_file()
91 pos2++; in hostapd_config_read_vlan_file()
92 pos3 = pos2; in hostapd_config_read_vlan_file()
109 os_strlcpy(vlan->bridge, pos2, sizeof(vlan->bridge)); in hostapd_config_read_vlan_file()
[all …]
/freebsd/contrib/wpa/src/common/
H A Dsae_pk.c455 const char *pos2; in sae_parse_pk() local
485 pos2 = os_strchr(pos, ':'); in sae_parse_pk()
486 if (pos2) { in sae_parse_pk()
487 b_len = pos2 - pos; in sae_parse_pk()
488 pos2++; in sae_parse_pk()
507 if (pos2) { in sae_parse_pk()
508 der = base64_decode(pos2, os_strlen(pos2), &der_len); in sae_parse_pk()
H A Dcli.c256 char *pos2 = os_strrchr(pos, '"'); in tokenize_cmd() local
257 if (pos2) in tokenize_cmd()
258 pos = pos2 + 1; in tokenize_cmd()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_ndis.c2136 char *names, *pos, *pos2; in wpa_driver_ndis_get_names()
2174 pos2 = pos = names; in wpa_driver_ndis_get_names()
2175 while (pos2 < names + len) { in wpa_driver_ndis_get_names()
2176 if (pos2[0] == '\0' && pos2[1] == '\0' && in wpa_driver_ndis_get_names()
2177 pos2[2] == '\0' && pos2[3] == '\0') { in wpa_driver_ndis_get_names()
2178 pos2 += 4; in wpa_driver_ndis_get_names()
2181 *pos++ = pos2[0]; in wpa_driver_ndis_get_names()
2182 pos2 += 2; in wpa_driver_ndis_get_names()
3073 char *names, *pos, *pos2; in wpa_driver_ndis_get_interfaces() local
3109 pos2 = pos = names; in wpa_driver_ndis_get_interfaces()
[all …]
/freebsd/contrib/wpa/src/pae/
H A Dieee802_1x_kay.c4048 char *pos2 = pos; in ieee802_1x_kay_get_status() local
4050 res = os_snprintf(pos2, end - pos2, "participant_idx=%d\nckn=", in ieee802_1x_kay_get_status()
4054 pos2 += res; in ieee802_1x_kay_get_status()
4057 pos2 += wpa_snprintf_hex(pos2, end - pos2, p->ckn.name, in ieee802_1x_kay_get_status()
4060 res = os_snprintf(pos2, end - pos2, in ieee802_1x_kay_get_status()
4080 pos2 += res; in ieee802_1x_kay_get_status()
4081 pos = pos2; in ieee802_1x_kay_get_status()
4152 char *pos2 = pos; in ieee802_1x_kay_get_mib() local
4154 res = os_snprintf(pos2, end - pos2, "ieee8021XKayMkaPartCKN="); in ieee802_1x_kay_get_mib()
4157 pos2 += res; in ieee802_1x_kay_get_mib()
[all …]
/freebsd/crypto/openssl/crypto/ripemd/asm/
H A Drmd-586.pl90 local($a,$b,$c,$d,$e,$pos,$s,$o,$pos2)=@_;
119 &mov($tmp2, &Xv($pos2)) if $o == 1;
128 local($a,$b,$c,$d,$e,$pos,$pos2,$s,$K,$o)=@_;
143 &mov($tmp1, &Xv($pos2)) if $o <= 0; # XXXXXXXXXXXXXX
163 &mov($tmp2, &Xv($pos2)) if $o <= 0;
183 local($a,$b,$c,$d,$e,$pos,$s,$K,$o,$pos2)=@_;
211 &mov($tmp2, &Xv($pos2)) if $o == 2;
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DRangeMap.h155 auto pos2 = vec2.begin(); in GetOverlaps() local
157 while (pos1 != end1 && pos2 != end2) { in GetOverlaps()
158 Entry entry = pos1->Intersect(*pos2); in GetOverlaps()
161 if (pos1->GetRangeEnd() < pos2->GetRangeEnd()) in GetOverlaps()
164 ++pos2; in GetOverlaps()
/freebsd/usr.bin/sort/
H A Dsort.c743 char *pos1, *pos2; in parse_k() local
760 pos2 = sort_strdup(sptr + 1); in parse_k()
761 ret = parse_pos(pos2, ks, mef_flags, true); in parse_k()
762 sort_free(pos2); in parse_k()
/freebsd/contrib/wpa/hs20/client/
H A Dspp_client.c269 char *pos2; in process_update_node() local
270 pos2 = os_strrchr(pos, '/'); in process_update_node()
271 if (pos2 == NULL) { in process_update_node()
274 *pos2 = '\0'; in process_update_node()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dbitmap.h150 extern int bt_range(ulong_t *bitmap, size_t *pos1, size_t *pos2,
/freebsd/contrib/wpa/src/radius/
H A Dradius_server.c1066 char *url2, *end2, *pos2; in radius_server_encapsulate_eap() local
1098 pos2 = url2; in radius_server_encapsulate_eap()
1100 os_memcpy(pos2, url, pos - url); in radius_server_encapsulate_eap()
1101 pos2 += pos - url; in radius_server_encapsulate_eap()
1102 os_snprintf(pos2, end2 - pos2, MACSTR, MAC2STR(sess->mac_addr)); in radius_server_encapsulate_eap()
1103 pos2 += ETH_ALEN * 3 - 1; in radius_server_encapsulate_eap()
1104 os_memcpy(pos2, pos + 3, os_strlen(pos + 3)); in radius_server_encapsulate_eap()

12