Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 1430) sorted by relevance

12345678910>>...58

/netbsd/src/external/bsd/wpa/dist/hostapd/
Dconfig_file.c34 char buf[128], *pos, *pos2, *pos3; in hostapd_config_read_vlan_file() local
49 pos = buf; in hostapd_config_read_vlan_file()
50 while (*pos != '\0') { in hostapd_config_read_vlan_file()
51 if (*pos == '\n') { in hostapd_config_read_vlan_file()
52 *pos = '\0'; in hostapd_config_read_vlan_file()
55 pos++; in hostapd_config_read_vlan_file()
62 pos = buf + 1; in hostapd_config_read_vlan_file()
64 vlan_id = strtol(buf, &pos, 10); in hostapd_config_read_vlan_file()
65 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
74 while (*pos == ' ' || *pos == '\t') in hostapd_config_read_vlan_file()
[all …]
Dhlr_auc_gw.c229 char cmd[128], val[13], *pos; in db_update_milenage_sqn() local
234 pos = val; in db_update_milenage_sqn()
235 pos += wpa_snprintf_hex(pos, sizeof(val), m->sqn, 6); in db_update_milenage_sqn()
236 *pos = '\0'; in db_update_milenage_sqn()
278 char buf[200], *pos, *pos2; in read_gsm_triplets() local
299 pos = buf; in read_gsm_triplets()
300 while (*pos != '\0' && *pos != '\n') in read_gsm_triplets()
301 pos++; in read_gsm_triplets()
302 if (*pos == '\n') in read_gsm_triplets()
303 *pos = '\0'; in read_gsm_triplets()
[all …]
Dctrl_iface.c167 char *pos; in hostapd_ctrl_iface_wps_pin() local
177 pos = os_strchr(timeout_txt, ' '); in hostapd_ctrl_iface_wps_pin()
178 if (pos) { in hostapd_ctrl_iface_wps_pin()
179 *pos++ = '\0'; in hostapd_ctrl_iface_wps_pin()
180 if (hwaddr_aton(pos, addr_buf) == 0) in hostapd_ctrl_iface_wps_pin()
195 char *pos; in hostapd_ctrl_iface_wps_check_pin() local
200 for (pos = cmd, len = 0; *pos != '\0'; pos++) { in hostapd_ctrl_iface_wps_check_pin()
201 if (*pos < '0' || *pos > '9') in hostapd_ctrl_iface_wps_check_pin()
203 pin[len++] = *pos; in hostapd_ctrl_iface_wps_check_pin()
237 char *pos) in hostapd_ctrl_iface_wps_nfc_tag_read() argument
[all …]
/netbsd/src/external/bsd/wpa/dist/src/tls/
Dtlsv1_server_write.c45 u8 *pos, *rhdr, *hs_start, *hs_length, *ext_start; in tls_write_server_hello() local
49 pos = *msgpos; in tls_write_server_hello()
52 rhdr = pos; in tls_write_server_hello()
53 pos += TLS_RECORD_HEADER_LEN; in tls_write_server_hello()
80 hs_start = pos; in tls_write_server_hello()
82 *pos++ = TLS_HANDSHAKE_TYPE_SERVER_HELLO; in tls_write_server_hello()
84 hs_length = pos; in tls_write_server_hello()
85 pos += 3; in tls_write_server_hello()
88 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello()
89 pos += 2; in tls_write_server_hello()
[all …]
Dtlsv1_client_write.c47 u8 *hello, *end, *pos, *hs_length, *hs_start, *rhdr; in tls_send_client_hello() local
82 pos = rhdr + TLS_RECORD_HEADER_LEN; in tls_send_client_hello()
87 hs_start = pos; in tls_send_client_hello()
89 *pos++ = TLS_HANDSHAKE_TYPE_CLIENT_HELLO; in tls_send_client_hello()
91 hs_length = pos; in tls_send_client_hello()
92 pos += 3; in tls_send_client_hello()
95 WPA_PUT_BE16(pos, tls_version); in tls_send_client_hello()
96 pos += 2; in tls_send_client_hello()
98 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
99 pos += TLS_RANDOM_LEN; in tls_send_client_hello()
[all …]
Dtlsv1_cred.c110 const u8 *pos, *end; in tlsv1_add_cert() local
114 pos = search_tag(pem_cert_begin, buf, len); in tlsv1_add_cert()
115 if (!pos) { in tlsv1_add_cert()
124 while (pos) { in tlsv1_add_cert()
125 pos += os_strlen(pem_cert_begin); in tlsv1_add_cert()
126 end = search_tag(pem_cert_end, pos, buf + len - pos); in tlsv1_add_cert()
133 der = base64_decode((const char *) pos, end - pos, &der_len); in tlsv1_add_cert()
150 pos = search_tag(pem_cert_begin, end, buf + len - end); in tlsv1_add_cert()
199 const char *pos = cert + 7; in tlsv1_set_ca_cert() local
200 if (os_strncmp(pos, "server/sha256/", 14) != 0) { in tlsv1_set_ca_cert()
[all …]
Dx509v3.c186 const u8 *pos, *end; in x509_parse_algorithm_identifier() local
202 pos = hdr.payload; in x509_parse_algorithm_identifier()
203 end = pos + hdr.length; in x509_parse_algorithm_identifier()
207 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier()
221 const u8 *pos, *end; in x509_parse_public_key() local
230 pos = buf; in x509_parse_public_key()
233 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key()
239 pos = hdr.payload; in x509_parse_public_key()
241 if (hdr.length > end - pos) in x509_parse_public_key()
243 end = pos + hdr.length; in x509_parse_public_key()
[all …]
Dtlsv1_client_read.c42 const u8 *pos, size_t len) in tls_process_server_hello_extensions() argument
44 const u8 *end = pos + len; in tls_process_server_hello_extensions()
47 pos, len); in tls_process_server_hello_extensions()
48 while (pos < end) { in tls_process_server_hello_extensions()
51 if (end - pos < 4) { in tls_process_server_hello_extensions()
56 ext = WPA_GET_BE16(pos); in tls_process_server_hello_extensions()
57 pos += 2; in tls_process_server_hello_extensions()
58 elen = WPA_GET_BE16(pos); in tls_process_server_hello_extensions()
59 pos += 2; in tls_process_server_hello_extensions()
61 if (elen > end - pos) { in tls_process_server_hello_extensions()
[all …]
Dtlsv1_server_read.c52 const u8 *pos, *end; in tls_process_status_request_item() local
55 pos = req; in tls_process_status_request_item()
72 if (end - pos < 1) in tls_process_status_request_item()
75 status_type = *pos++; in tls_process_status_request_item()
83 wpa_hexdump(MSG_DEBUG, "TLSv1: OCSPStatusRequest", pos, end - pos); in tls_process_status_request_item()
93 const u8 *pos, *end; in tls_process_status_request_v2() local
97 pos = ext; in tls_process_status_request_v2()
108 while (end - pos >= 2) { in tls_process_status_request_v2()
111 len = WPA_GET_BE16(pos); in tls_process_status_request_v2()
112 pos += 2; in tls_process_status_request_v2()
[all …]
Dtlsv1_client_ocsp.c117 const u8 *pos, *end; in tls_process_ocsp_single_response() local
145 pos = hdr.payload; in tls_process_ocsp_single_response()
157 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos)) in tls_process_ocsp_single_response()
161 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response()
171 pos = hdr.payload + hdr.length; in tls_process_ocsp_single_response()
186 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response()
195 pos = hdr.payload + hdr.length; in tls_process_ocsp_single_response()
208 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response()
231 pos = end; in tls_process_ocsp_single_response()
241 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response()
[all …]
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/
Dctrl_iface.c84 char *pos; in set_bssid_filter() local
88 pos = val; in set_bssid_filter()
89 while (pos) { in set_bssid_filter()
90 if (*pos == '\0') in set_bssid_filter()
92 if (hwaddr_aton(pos, addr)) { in set_bssid_filter()
105 pos = os_strchr(pos, ' '); in set_bssid_filter()
106 if (pos) in set_bssid_filter()
107 pos++; in set_bssid_filter()
121 char *pos; in set_disallow_aps() local
133 pos = val; in set_disallow_aps()
[all …]
/netbsd/src/external/bsd/mdocml/dist/
Dtbl_layout.c65 int ln, const char *p, int *pos) in mods() argument
71 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
72 (*pos)++; in mods()
76 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
81 if ('(' == p[*pos]) { in mods()
82 (*pos)++; in mods()
83 while (p[*pos] && ')' != p[*pos]) in mods()
84 (*pos)++; in mods()
85 if (')' == p[*pos]) { in mods()
86 (*pos)++; in mods()
[all …]
Dtbl_opts.c66 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument
70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg()
71 (*pos)++; in arg()
76 if (p[*pos] == '(') { in arg()
77 (*pos)++; in arg()
78 while (p[*pos + len] != ')') in arg()
85 ln, *pos, "%.*s", len, p + *pos); in arg()
91 tbl->opts.tab = p[*pos]; in arg()
99 tbl->opts.decimal = p[*pos]; in arg()
106 mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, in arg()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/rsn_supp/
Dwpa_ie.c45 u8 *pos; in wpa_gen_wpa_ie_wpa() local
57 pos = (u8 *) (hdr + 1); in wpa_gen_wpa_ie_wpa()
65 RSN_SELECTOR_PUT(pos, suite); in wpa_gen_wpa_ie_wpa()
66 pos += WPA_SELECTOR_LEN; in wpa_gen_wpa_ie_wpa()
68 *pos++ = 1; in wpa_gen_wpa_ie_wpa()
69 *pos++ = 0; in wpa_gen_wpa_ie_wpa()
78 RSN_SELECTOR_PUT(pos, suite); in wpa_gen_wpa_ie_wpa()
79 pos += WPA_SELECTOR_LEN; in wpa_gen_wpa_ie_wpa()
81 *pos++ = 1; in wpa_gen_wpa_ie_wpa()
82 *pos++ = 0; in wpa_gen_wpa_ie_wpa()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/ap/
Dfils_hlp.c23 const u16 *pos; in ip_checksum() local
25 for (pos = buf; len >= 2; len -= 2) in ip_checksum()
26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
39 u8 *pos, *end; in fils_dhcp_request() local
53 pos = wpabuf_mhead(sta->hlp_dhcp_discover); in fils_dhcp_request()
54 end = pos + wpabuf_len(sta->hlp_dhcp_discover); in fils_dhcp_request()
55 dhcp = (struct dhcp_data *) pos; in fils_dhcp_request()
56 pos = (u8 *) (dhcp + 1); in fils_dhcp_request()
57 pos += 4; /* skip magic */ in fils_dhcp_request()
[all …]
Dieee802_11_shared.c24 static u8 * hostapd_eid_timeout_interval(u8 *pos, u8 type, u32 value) in hostapd_eid_timeout_interval() argument
26 *pos++ = WLAN_EID_TIMEOUT_INTERVAL; in hostapd_eid_timeout_interval()
27 *pos++ = 5; in hostapd_eid_timeout_interval()
28 *pos++ = type; in hostapd_eid_timeout_interval()
29 WPA_PUT_LE32(pos, value); in hostapd_eid_timeout_interval()
30 pos += 4; in hostapd_eid_timeout_interval()
32 return pos; in hostapd_eid_timeout_interval()
365 static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx, in hostapd_ext_capab_byte() argument
368 *pos = 0x00; in hostapd_ext_capab_byte()
373 *pos |= 0x01; /* Bit 0 - Coexistence management */ in hostapd_ext_capab_byte()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/wps/
Dwps_attr_parse.c21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument
32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem()
35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem()
44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem()
52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem()
60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem()
68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem()
77 attr->multi_ap_ext = *pos; in wps_set_vendor_ext_wfa_subelem()
91 static int wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, in wps_parse_vendor_ext_wfa() argument
94 const u8 *end = pos + len; in wps_parse_vendor_ext_wfa()
[all …]
/netbsd/src/external/gpl3/gdb/dist/sim/ppc/
Dtable.c39 char *pos; member
122 file->pos = file->buffer;
169 while (*file->pos == '\0')
180 while (*file->pos != '\0'
181 && *file->pos != '\n'
182 && isspace(*file->pos))
183 file->pos++;
185 if (*file->pos == '#') {
187 file->pos++;
188 } while (*file->pos != '\0' && *file->pos != '\n');
[all …]
/netbsd/src/external/bsd/less/dist/
Dforwback.c75 POSITION pos; in eof_displayed() local
92 pos = position(BOTTOM_PLUS_ONE); in eof_displayed()
93 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed()
101 POSITION pos; in entire_file_displayed() local
108 pos = position(0); in entire_file_displayed()
109 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed()
130 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() argument
139 pos = forw_line_seg(pos, skipeol, FALSE, FALSE); in forw_line_pfx()
143 return pos; in forw_line_pfx()
164 POSITION pos = ch_zero(); /* header lines are at beginning of file */ in overlay_header() local
[all …]
Djump.c32 POSITION pos; in jump_forw() local
58 pos = back_line(end_pos); in jump_forw()
59 if (pos == NULL_POSITION) in jump_forw()
63 jump_loc(pos, sc_height-1); in jump_forw()
91 POSITION pos; in jump_back() local
100 pos = find_pos(linenum); in jump_back()
101 if (pos != NULL_POSITION && ch_seek(pos) == 0) in jump_back()
104 set_attnpos(pos); in jump_back()
105 jump_loc(pos, jump_sline); in jump_back()
129 if (scrpos.pos == NULL_POSITION) in repaint()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/eap_peer/
Deap_fast_pac.c181 const char *pos; member
190 char *pos; in eap_fast_read_line() local
199 if (rc->pos >= rc->end) in eap_fast_read_line()
201 l_end = rc->pos; in eap_fast_read_line()
204 len = l_end - rc->pos; in eap_fast_read_line()
207 os_memcpy(rc->buf, rc->pos, len); in eap_fast_read_line()
209 rc->pos = l_end + 1; in eap_fast_read_line()
213 pos = rc->buf; in eap_fast_read_line()
214 while (*pos != '\0') { in eap_fast_read_line()
215 if (*pos == '\n' || *pos == '\r') { in eap_fast_read_line()
[all …]
Deap_teap_pac.c181 const char *pos; member
190 char *pos; in eap_teap_read_line() local
200 if (rc->pos >= rc->end) in eap_teap_read_line()
202 l_end = rc->pos; in eap_teap_read_line()
205 len = l_end - rc->pos; in eap_teap_read_line()
208 os_memcpy(rc->buf, rc->pos, len); in eap_teap_read_line()
210 rc->pos = l_end + 1; in eap_teap_read_line()
214 pos = rc->buf; in eap_teap_read_line()
215 while (*pos != '\0') { in eap_teap_read_line()
216 if (*pos == '\n' || *pos == '\r') { in eap_teap_read_line()
[all …]
/netbsd/src/distrib/utils/more/
Dprim.c71 off_t pos; in eof_check() local
80 pos = position(BOTTOM_PLUS_ONE); in eof_check()
81 if (pos == NULL_POSITION || pos == ch_length()) in eof_check()
107 forw(n, pos, only_last) in forw() argument
110 off_t pos;
144 if (pos != position(BOTTOM_PLUS_ONE)) {
146 add_forw_pos(pos);
159 pos = forw_line(pos);
160 if (pos == NULL_POSITION) {
177 add_forw_pos(pos);
[all …]
/netbsd/src/external/bsd/top/dist/
Dhash.c486 hash_first_uint(hash_table *ht, hash_pos *pos) in hash_first_uint() argument
490 pos->num_buckets = ht->num_buckets; in hash_first_uint()
491 pos->hash_bucket = ht->buckets; in hash_first_uint()
492 pos->curr = 0; in hash_first_uint()
493 pos->ll_last = NULL; in hash_first_uint()
496 while(pos->hash_bucket->list.count == 0) in hash_first_uint()
498 pos->hash_bucket++; in hash_first_uint()
499 if (++pos->curr >= pos->num_buckets) in hash_first_uint()
506 pos->ll_item = LL_FIRST(&(pos->hash_bucket->list)); in hash_first_uint()
507 return (hash_item_uint *)pos->ll_item->datum; in hash_first_uint()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/p2p/
Dp2p_sd.c21 const u8 *pos, *end; in wfd_wsd_supported() local
28 pos = wpabuf_head(wfd); in wfd_wsd_supported()
29 end = pos + wpabuf_len(wfd); in wfd_wsd_supported()
31 while (end - pos >= 3) { in wfd_wsd_supported()
32 subelem = *pos++; in wfd_wsd_supported()
33 len = WPA_GET_BE16(pos); in wfd_wsd_supported()
34 pos += 2; in wfd_wsd_supported()
35 if (len > end - pos) in wfd_wsd_supported()
39 u16 info = WPA_GET_BE16(pos); in wfd_wsd_supported()
43 pos += len; in wfd_wsd_supported()
[all …]

12345678910>>...58