Home
last modified time | relevance | path

Searched refs:pos2 (Results 1 – 25 of 35) 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.c1146 const char *pos2 = os_strstr(pos, " " #str "="); \ in hostapd_parse_freq_params()
1147 if (pos2) { \ in hostapd_parse_freq_params()
1148 pos2 += sizeof(" " #str "=") - 1; \ in hostapd_parse_freq_params()
1149 params->str = atoi(pos2); \ in hostapd_parse_freq_params()
1504 char *pos, *pos2; in hostapd_ctrl_iface_pmksa_add() local
1529 pos2 = os_strchr(pos, ' '); in hostapd_ctrl_iface_pmksa_add()
1530 if (!pos2) in hostapd_ctrl_iface_pmksa_add()
1532 pmk_len = (pos2 - pos) / 2; in hostapd_ctrl_iface_pmksa_add()
1537 pos = pos2 + 1; in hostapd_ctrl_iface_pmksa_add()
/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/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.cpp101 std::string::size_type pos2 = str.find_last_not_of(" \t"); in split()
103 if (pos1 == std::string::npos && pos2 == std::string::npos) in split()
106 return str.substr(0, str.length() - pos2); in trim()
107 else if (pos2 == std::string::npos) in trim()
110 return str.substr(pos1, pos2 - pos1 + 1); in trim()
109 std::string::size_type pos2 = str.find_last_not_of(" \t"); trim() local
/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c279 char buf[200], *pos, *pos2; in read_gsm_triplets() local
316 pos2 = NULL; in read_gsm_triplets()
317 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
326 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
334 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
343 pos = str_token(buf, ":", &pos2); in read_gsm_triplets()
391 char buf[200], *pos, *pos2; in read_milenage() local
428 pos2 = NULL; in read_milenage()
429 pos = str_token(buf, " ", &pos2); in read_milenage()
438 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/wpa_supplicant/
H A Dconfig_file.c87 char buf[2000], *pos, *pos2; in wpa_config_read_network() local
105 pos2 = os_strchr(pos, '='); in wpa_config_read_network()
106 if (pos2 == NULL) { in wpa_config_read_network()
113 *pos2++ = '\0'; in wpa_config_read_network()
114 if (*pos2 == '"') { in wpa_config_read_network()
115 if (os_strchr(pos2 + 1, '"') == NULL) { in wpa_config_read_network()
117 "quotation '%s'.", *line, pos2); in wpa_config_read_network()
123 if (wpa_config_set(ssid, pos, pos2, *line) < 0) { in wpa_config_read_network()
162 char buf[256], *pos, *pos2; in wpa_config_read_cred() local
177 pos2 = os_strchr(pos, '='); in wpa_config_read_cred()
[all …]
H A Dctrl_iface.c1233 const char *pos2 = os_strstr(pos, " " #str "="); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1234 if (pos2) { \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1235 pos2 += sizeof(" " #str "=") - 1; \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1236 freq_params.str = atoi(pos2); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1819 char *pos, *pos2; in wpas_ctrl_nfc_get_handover_sel() local
1834 pos2 = os_strchr(pos, ' '); in wpas_ctrl_nfc_get_handover_sel()
1835 if (pos2) in wpas_ctrl_nfc_get_handover_sel()
1836 *pos2++ = '\0'; in wpas_ctrl_nfc_get_handover_sel()
1842 os_strcmp(pos, "WPS-CR") == 0, pos2); in wpas_ctrl_nfc_get_handover_sel()
1867 char *pos, *role, *type, *pos2; in wpas_ctrl_nfc_report_handover() local
[all …]
H A Dwpa_cli.c4553 char *copy = NULL, *id, *pos2; in wpa_cli_action_process() local
4593 pos2 = id = copy; in wpa_cli_action_process()
4594 while (*pos2 && *pos2 != ' ') in wpa_cli_action_process()
4595 pos2++; in wpa_cli_action_process()
4596 *pos2++ = '\0'; in wpa_cli_action_process()
4599 while (*pos2 && *pos2 != '=') in wpa_cli_action_process()
4600 pos2++; in wpa_cli_action_process()
4601 if (*pos2 == '=') in wpa_cli_action_process()
4602 pos2++; in wpa_cli_action_process()
4603 id = pos2; in wpa_cli_action_process()
[all …]
/freebsd/contrib/wpa/src/common/
H A Dsae_pk.c461 const char *pos2; in sae_parse_pk() local
491 pos2 = os_strchr(pos, ':'); in sae_parse_pk()
492 if (pos2) { in sae_parse_pk()
493 b_len = pos2 - pos; in sae_parse_pk()
494 pos2++; in sae_parse_pk()
513 if (pos2) { in sae_parse_pk()
514 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/tools/test/stress2/misc/
H A Drangelocks2.sh89 off_t pos, pos2;
110 pos2 = newpos(l);
111 if (copy_file_range(fd, &pos, fd2, &pos2, l, 0) == -1)
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_ndis.c2139 char *names, *pos, *pos2; in wpa_driver_ndis_get_names()
2177 pos2 = pos = names; in wpa_driver_ndis_get_names()
2178 while (pos2 < names + len) { in wpa_driver_ndis_get_names()
2179 if (pos2[0] == '\0' && pos2[1] == '\0' && in wpa_driver_ndis_get_names()
2180 pos2[2] == '\0' && pos2[3] == '\0') { in wpa_driver_ndis_get_names()
2181 pos2 += 4; in wpa_driver_ndis_get_names()
2184 *pos++ = pos2[0]; in wpa_driver_ndis_get_names()
2185 pos2 += 2; in wpa_driver_ndis_get_names()
3076 char *names, *pos, *pos2; in wpa_driver_ndis_get_interfaces() local
3112 pos2 = pos = names; in wpa_driver_ndis_get_interfaces()
[all …]
/freebsd/contrib/wpa/src/pae/
H A Dieee802_1x_kay.c4045 char *pos2 = pos; in ieee802_1x_kay_get_status() local
4047 res = os_snprintf(pos2, end - pos2, "participant_idx=%d\nckn=", in ieee802_1x_kay_get_status()
4051 pos2 += res; in ieee802_1x_kay_get_status()
4054 pos2 += wpa_snprintf_hex(pos2, end - pos2, p->ckn.name, in ieee802_1x_kay_get_status()
4057 res = os_snprintf(pos2, end - pos2, in ieee802_1x_kay_get_status()
4077 pos2 += res; in ieee802_1x_kay_get_status()
4078 pos = pos2; in ieee802_1x_kay_get_status()
4149 char *pos2 = pos; in ieee802_1x_kay_get_mib() local
4151 res = os_snprintf(pos2, end - pos2, "ieee8021XKayMkaPartCKN="); in ieee802_1x_kay_get_mib()
4154 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/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.c867 char *url2, *end2, *pos2; in radius_server_encapsulate_eap() local
899 pos2 = url2; in radius_server_encapsulate_eap()
901 os_memcpy(pos2, url, pos - url); in radius_server_encapsulate_eap()
902 pos2 += pos - url; in radius_server_encapsulate_eap()
903 os_snprintf(pos2, end2 - pos2, MACSTR, MAC2STR(sess->mac_addr)); in radius_server_encapsulate_eap()
904 pos2 += ETH_ALEN * 3 - 1; in radius_server_encapsulate_eap()
905 os_memcpy(pos2, pos + 3, os_strlen(pos + 3)); in radius_server_encapsulate_eap()
/freebsd/contrib/wpa/src/tls/
H A Dtlsv1_cred.c283 const u8 *pos2; in tlsv1_set_key_pem() local
288 pos2 = search_tag("Proc-Type: 4,ENCRYPTED", pos, end - pos); in tlsv1_set_key_pem()
289 if (pos2) { in tlsv1_set_key_pem()

12