/netbsd/external/bsd/wpa/dist/src/rsn_supp/ |
H A D | wpa_ie.c | 45 u8 *pos; in wpa_gen_wpa_ie_wpa() local 416 pos, pos[1] + 2); in wpa_parse_generic() 425 pos, pos[1] + 2); in wpa_parse_generic() 434 pos, pos[1] + 2); in wpa_parse_generic() 444 pos, pos[1] + 2); in wpa_parse_generic() 474 pos, pos[1] + 2); in wpa_parse_generic() 497 for (pos = buf, end = pos + len; end - pos > 1; pos += 2 + pos[1]) { in wpa_supplicant_parse_ies() 503 if (2 + pos[1] > end - pos) { in wpa_supplicant_parse_ies() 506 pos[0], pos[1], (int) (pos - buf)); in wpa_supplicant_parse_ies() 543 pos, 2 + pos[1]); in wpa_supplicant_parse_ies() [all …]
|
/netbsd/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/ |
H A D | string_util_gtest.cc | 11 size_t pos = 0; in TEST() local 16 size_t pos = 0; in TEST() local 21 size_t pos = 0; in TEST() local 27 size_t pos = 0; in TEST() local 33 size_t pos = 0; in TEST() local 39 size_t pos = 0; in TEST() local 44 size_t pos = 0; in TEST() local 49 size_t pos = 0; in TEST() local 54 size_t pos = 0; in TEST() local 59 size_t pos = 0; in TEST() local [all …]
|
/netbsd/external/bsd/wpa/dist/hostapd/ |
H A D | config_file.c | 216 while (*pos != '\0' && *pos != ' ' && *pos != '\t') in hostapd_config_read_maclist() 413 while (*pos != ' ' && *pos != '\t' && *pos != '\0') in hostapd_config_read_eap_user() 857 pos = os_strchr(pos, ' '); in hostapd_parse_chanlist() 991 pos[4] >= '0' && pos[4] <= '9' && pos[5] == '_') { in hostapd_config_tx_queue() 1370 if (*pos == '"' || (*pos == 'P' && pos[1] == '"')) { in parse_lang_string() 1470 for (pos = buf; *pos; pos++) { in parse_3gpp_cell_net() 1471 if ((*pos < '0' || *pos > '9') && *pos != ';' && *pos != ',') in parse_3gpp_cell_net() 1492 while (pos && *pos) { in parse_3gpp_cell_net() 1582 pos = os_strchr(pos, ','); in parse_nai_realm() 1607 while (pos && *pos) { in parse_nai_realm() [all …]
|
H A D | hlr_auc_gw.c | 326 if (!pos || os_strlen(pos) != 16 || hexstr2bin(pos, g->kc, 8)) { in read_gsm_triplets() 456 if (!pos || os_strlen(pos) != 4 || hexstr2bin(pos, m->amf, 2)) { in read_milenage() 538 pos += snprintf(pos, end - pos, "%s ", m->imsi); in update_milenage_file() 539 pos += wpa_snprintf_hex(pos, end - pos, m->ki, 16); in update_milenage_file() 541 pos += wpa_snprintf_hex(pos, end - pos, m->opc, 16); in update_milenage_file() 543 pos += wpa_snprintf_hex(pos, end - pos, m->amf, 2); in update_milenage_file() 545 pos += wpa_snprintf_hex(pos, end - pos, m->sqn, 6); in update_milenage_file() 799 pos += wpa_snprintf_hex(pos, end - pos, autn, EAP_AKA_AUTN_LEN); in aka_req_auth() 801 pos += wpa_snprintf_hex(pos, end - pos, ik, EAP_AKA_IK_LEN); in aka_req_auth() 803 pos += wpa_snprintf_hex(pos, end - pos, ck, EAP_AKA_CK_LEN); in aka_req_auth() [all …]
|
/netbsd/external/bsd/wpa/dist/wpa_supplicant/ |
H A D | ctrl_iface.c | 95 pos = os_strchr(pos, ' '); in set_bssid_filter() 192 pos = os_strchr(pos, ' '); in set_disallow_aps() 240 pos = os_strchr(pos, ' '); in wpas_ctrl_set_blob() 548 pos = os_strchr(pos, ','); in wpa_supplicant_ctrl_iface_set() 1291 for (pos = cmd, len = 0; *pos != '\0'; pos++) { in wpa_supplicant_ctrl_iface_wps_check_pin() 3150 pos = pos + 9; in wpa_supplicant_ctrl_iface_mesh_link_probe() 4751 pos, end - pos, in print_bss_info() 4899 pos += wpa_snprintf_hex(pos, end - pos, in print_bss_info() 5880 if (pos && pos[0] && pos[0] != ' ') { in p2p_ctrl_serv_disc_req() 6150 if (pos && pos[0]) { in p2p_ctrl_service_add_asp() [all …]
|
/netbsd/external/bsd/wpa/dist/src/tls/ |
H A D | tlsv1_server_write.c | 52 rhdr = pos; in tls_write_server_hello() 85 pos += 3; in tls_write_server_hello() 89 pos += 2; in tls_write_server_hello() 99 pos += 2; in tls_write_server_hello() 105 pos += 2; in tls_write_server_hello() 111 pos += 2; in tls_write_server_hello() 114 pos += 2; in tls_write_server_hello() 123 pos += 2; in tls_write_server_hello() 126 pos += 2; in tls_write_server_hello() 223 pos += 3; in tls_write_server_certificate() [all …]
|
H A D | tlsv1_client_write.c | 104 pos += 3; in tls_send_client_hello() 108 pos += 2; in tls_send_client_hello() 118 pos += 2; in tls_send_client_hello() 121 pos += 2; in tls_send_client_hello() 129 pos += 2; in tls_send_client_hello() 139 pos += 2; in tls_send_client_hello() 142 pos += 2; in tls_send_client_hello() 145 pos += 2; in tls_send_client_hello() 167 pos += 2; in tls_send_client_hello() 290 pos += 3; in tls_write_client_certificate() [all …]
|
H A D | tlsv1_client_read.c | 57 pos += 2; in tls_process_server_hello_extensions() 59 pos += 2; in tls_process_server_hello_extensions() 109 pos++; in tls_process_server_hello() 130 "ServerHello %u.%u", pos[0], pos[1]); in tls_process_server_hello() 153 if (end - pos < 1 + *pos || *pos > TLS_SESSION_ID_MAX_LEN) in tls_process_server_hello() 162 pos++; in tls_process_server_hello() 215 pos++; in tls_process_server_hello() 236 "end of ServerHello", pos, end - pos); in tls_process_server_hello() 749 pos[0], pos[1]); in tlsv1_process_diffie_hellman() 776 hash, hlen, pos, end - pos, in tlsv1_process_diffie_hellman() [all …]
|
H A D | x509v3.c | 210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier() 519 if (pos > buf + 1 && pos[-1] == ' ' && pos[-2] == ',') { in x509_name_string() 1203 if (asn1_get_oid(pos, end - pos, &oid, &pos)) in x509_parse_ext_ext_key_usage() 1287 if (asn1_get_oid(pos, end - pos, &oid, &pos) < 0) { in x509_parse_extension() 1357 if (x509_parse_extension(cert, pos, end - pos, &pos) in x509_parse_extensions() 1463 if (x509_parse_name(pos, end - pos, &cert->issuer, &pos)) in x509_parse_tbs_certificate() 1469 if (x509_parse_validity(pos, end - pos, cert, &pos)) in x509_parse_tbs_certificate() 1474 if (x509_parse_name(pos, end - pos, &cert->subject, &pos)) in x509_parse_tbs_certificate() 1485 if (x509_parse_public_key(pos, end - pos, cert, &pos)) in x509_parse_tbs_certificate() 1564 pos, end - pos); in x509_parse_tbs_certificate() [all …]
|
H A D | tlsv1_cred.c | 133 der = base64_decode(pos, end - pos, &der_len); in tlsv1_add_cert() 296 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_pem() 324 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_enc_pem() 470 if (asn1_get_oid(pos, end - pos, &oid, &pos)) { in pkcs12_certbag() 485 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs12_certbag() 591 if (asn1_get_oid(pos, end - pos, &a_oid, &pos)) { in pkcs12_parse_attr() 635 if (asn1_get_oid(pos, end - pos, &oid, &pos)) { in pkcs12_safebag() 809 pos, end - pos); in pkcs12_parse_content_enc_data() 830 if (asn1_get_oid(pos, end - pos, &oid, &pos)) { in pkcs12_parse_content_enc_data() 894 if (asn1_get_oid(pos, end - pos, &oid, &pos)) { in pkcs12_parse_content() [all …]
|
H A D | tlsv1_server_read.c | 55 pos = req; in tls_process_status_request_item() 97 pos = ext; in tls_process_status_request_v2() 112 pos += 2; in tls_process_status_request_v2() 157 pos++; in tls_process_client_hello() 160 pos += 3; in tls_process_client_hello() 192 pos += 2; in tls_process_client_hello() 223 if (end - pos < 1 + *pos || *pos > TLS_SESSION_ID_MAX_LEN) { in tls_process_client_hello() 228 pos += 1 + *pos; in tls_process_client_hello() 238 pos += 2; in tls_process_client_hello() 723 pos, end - pos); in tls_process_client_key_exchange_dh() [all …]
|
/netbsd/external/bsd/mdocml/dist/ |
H A D | tbl_layout.c | 71 while (p[*pos] == ' ' || p[*pos] == '\t') in mods() 83 while (p[*pos] && ')' != p[*pos]) in mods() 121 if (p[*pos] == '-' || p[*pos] == '+') in mods() 164 ln, *pos - 1, "%c", p[*pos - 1]); in mods() 175 if (p[*pos] == '\0' || (p[*pos + 1] != ' ' && p[*pos + 1] != '.')) { in mods() 177 ln, *pos, "TS %s", p + *pos - 1); in mods() 213 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') { in cell() 228 if (p[*pos] == '.' || p[*pos] == '\0') in cell() 239 ln, *pos, "%c", p[*pos]); in cell() 272 while (p[pos] == ' ' || p[pos] == '\t') in tbl_layout() [all …]
|
H A D | tbl_opts.c | 70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg() 71 (*pos)++; in arg() 77 (*pos)++; in arg() 85 ln, *pos, "%.*s", len, p + *pos); in arg() 112 *pos += len; in arg() 114 (*pos)++; in arg() 129 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') in tbl_option() 130 pos++; in tbl_option() 145 ln, pos, "%c", p[pos]); in tbl_option() 146 pos++; in tbl_option() [all …]
|
/netbsd/external/bsd/wpa/dist/src/ap/ |
H A D | wpa_auth_ie.c | 50 pos += 2; in wpa_write_wpa_ie() 63 pos += 2; in wpa_write_wpa_ie() 116 pos += 2; in wpa_write_rsn_ie() 147 pos += 2; in wpa_write_rsn_ie() 459 pos = wpa_write_osen(&wpa_auth->conf, pos); in wpa_auth_gen_wpa_ie() 463 pos, buf + sizeof(buf) - pos, NULL); in wpa_auth_gen_wpa_ie() 479 pos, buf + sizeof(buf) - pos); in wpa_auth_gen_wpa_ie() 1081 for (pos = buf, end = pos + len; end - pos > 1; pos += 2 + pos[1]) { in wpa_parse_kde_ies() 1087 if (2 + pos[1] > end - pos) { in wpa_parse_kde_ies() 1090 pos[0], pos[1], (int) (pos - buf)); in wpa_parse_kde_ies() [all …]
|
H A D | fils_hlp.c | 58 while (pos < end && *pos != DHCP_OPT_END) { in fils_dhcp_request() 80 os_memmove(pos, pos + 2 + olen, end - pos - 2 - olen); in fils_dhcp_request() 87 if (pos >= end || *pos != DHCP_OPT_END) { in fils_dhcp_request() 200 pos, end - pos); in fils_dhcp_handler() 224 if (pos < end && *pos == DHCP_OPT_END) in fils_dhcp_handler() 603 if (2 + pos[1] > end - pos) in fils_process_hlp() 609 pos += 2 + pos[1]; in fils_process_hlp() 619 if (2 + pos[1] > end - pos || in fils_process_hlp() 627 pos += 2 + pos[1]; in fils_process_hlp() 631 2 + pos[1] <= end - pos) { in fils_process_hlp() [all …]
|
H A D | ieee802_11_shared.c | 27 u8 *pos = eid; in hostapd_eid_assoc_comeback_time() local 32 *pos++ = 5; in hostapd_eid_assoc_comeback_time() 44 pos += 4; in hostapd_eid_assoc_comeback_time() 46 return pos; in hostapd_eid_assoc_comeback_time() 508 pos++; in hostapd_eid_interworking() 573 pos++; in hostapd_eid_roaming_consortium() 636 u8 *pos; in hostapd_update_time_adv() local 660 pos += 2; in hostapd_update_time_adv() 667 pos += 2; in hostapd_update_time_adv() 764 pos += mbo_add_ie(pos, len, mbo, mbo_pos - mbo); in hostapd_eid_mbo() [all …]
|
/netbsd/external/bsd/wpa/dist/src/eap_peer/ |
H A D | eap_fast_pac.c | 190 char *pos; in eap_fast_read_line() local 215 if (*pos == '\n' || *pos == '\r') { in eap_fast_read_line() 219 pos++; in eap_fast_read_line() 223 if (pos) in eap_fast_read_line() 332 if (!pos) in eap_fast_parse_pac_type() 486 pos == NULL || *pos == NULL || *pos < *buf) in eap_fast_write() 500 *pos = nbuf + (*pos - *buf); in eap_fast_write() 510 *pos += wpa_snprintf_hex(*pos, end - *pos, data, len); in eap_fast_write() 511 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write() 527 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write() [all …]
|
H A D | eap_teap_pac.c | 190 char *pos; in eap_teap_read_line() local 216 if (*pos == '\n' || *pos == '\r') { in eap_teap_read_line() 220 pos++; in eap_teap_read_line() 224 if (pos) in eap_teap_read_line() 335 if (!pos) in eap_teap_parse_pac_type() 486 if (!data || !buf || !(*buf) || !pos || !(*pos) || *pos < *buf) in eap_teap_write() 501 *pos = nbuf + (*pos - *buf); in eap_teap_write() 511 *pos += wpa_snprintf_hex(*pos, end - *pos, data, len); in eap_teap_write() 512 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_teap_write() 528 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_teap_write() [all …]
|
/netbsd/external/bsd/wpa/dist/src/wps/ |
H A D | wps_attr_parse.c | 32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem() 98 id = *pos++; in wps_parse_vendor_ext_wfa() 99 elen = *pos++; in wps_parse_vendor_ext_wfa() 104 pos += elen; in wps_parse_vendor_ext_wfa() 194 attr->uuid_e = pos; in wps_set_attr() 534 attr->ssid = pos; in wps_set_attr() 617 pos += 2; in wps_parse_msg() 619 pos += 2; in wps_parse_msg() 638 pos -= 3; in wps_parse_msg() 653 if (pos[i]) in wps_parse_msg() [all …]
|
/netbsd/distrib/utils/more/ |
H A D | prim.c | 71 off_t pos; in eof_check() local 81 if (pos == NULL_POSITION || pos == ch_length()) in eof_check() 110 off_t pos; 159 pos = forw_line(pos); 209 off_t pos; 222 pos = back_line(pos); 259 off_t pos; local 289 off_t pos; local 307 off_t pos; in prepaint() 756 pos = forw_raw_line(pos); [all …]
|
/netbsd/external/gpl3/gdb/dist/sim/ppc/ |
H A D | table.c | 44 char *pos; member 192 file->pos++; 193 } while (*file->pos != '\0' && *file->pos != '\n'); 214 while(*file->pos && *file->pos != ':' && *file->pos != '\n') 225 while (*file->pos && *file->pos != '\n') { 249 while(*file->pos && *file->pos != ':' && *file->pos != '\n') 250 file->pos++; 253 file->pos++; 260 while (*file->pos && *file->pos != '\n') { 279 file->pos++; [all …]
|
/netbsd/external/gpl3/gdb.old/dist/sim/ppc/ |
H A D | table.c | 44 char *pos; member 192 file->pos++; 193 } while (*file->pos != '\0' && *file->pos != '\n'); 214 while(*file->pos && *file->pos != ':' && *file->pos != '\n') 225 while (*file->pos && *file->pos != '\n') { 249 while(*file->pos && *file->pos != ':' && *file->pos != '\n') 250 file->pos++; 253 file->pos++; 260 while (*file->pos && *file->pos != '\n') { 279 file->pos++; [all …]
|
/netbsd/external/bsd/top/dist/ |
H A D | hash.c | 529 if (pos->curr >= pos->num_buckets) in hash_next_uint() 584 if (pos == NULL || pos->ll_last == pos->ll_item) in hash_remove_pos_uint() 603 pos->ll_item = pos->ll_last; in hash_remove_pos_uint() 918 if (pos == NULL || pos->ll_last == pos->ll_item) in hash_remove_pos_pid() 938 pos->ll_item = pos->ll_last; in hash_remove_pos_pid() 1254 if (pos == NULL || pos->ll_last == pos->ll_item) in hash_remove_pos_string() 1276 pos->ll_item = pos->ll_last; in hash_remove_pos_string() 1591 if (pos == NULL || pos->ll_last == pos->ll_item) in hash_remove_pos_pidthr() 1611 pos->ll_item = pos->ll_last; in hash_remove_pos_pidthr() 1927 if (pos == NULL || pos->ll_last == pos->ll_item) in hash_remove_pos_lwpid() [all …]
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/ |
H A D | list.h | 317 for (pos = __container_of((head)->next, pos, member); \ 319 pos = __container_of(pos->member.next, pos, member)) 329 for (pos = __container_of((head)->next, pos, member), \ 330 tmp = __container_of(pos->member.next, pos, member); \ 336 for (pos = __container_of((head)->prev, pos, member); \ 338 pos = __container_of(pos->member.prev, pos, member)) 341 for (pos = __container_of(pos->member.next, pos, member); \ 343 pos = __container_of(pos->member.next, pos, member)) 346 for (pos = __container_of(pos->member.prev, pos, member); \ 348 pos = __container_of(pos->member.prev, pos, member)) [all …]
|
/netbsd/external/bsd/less/dist/ |
H A D | jump.c | 33 POSITION pos; in jump_forw() local 72 POSITION pos; local 82 if (pos != NULL_POSITION && ch_seek(pos) == 0) 122 POSITION pos, len; local 139 if (pos >= len) 140 pos = len-1; 152 POSITION pos; in jump_line_loc() 166 pos = ch_tell(); 180 POSITION pos; in jump_loc() 250 pos = back_line(pos); [all …]
|