| /freebsd/contrib/wpa/hostapd/ |
| H A D | config_file.c | 34 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 …]
|
| H A D | hlr_auc_gw.c | 229 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 …]
|
| /freebsd/contrib/wpa/src/tls/ |
| H A D | tlsv1_server_write.c | 45 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 …]
|
| H A D | tlsv1_client_write.c | 47 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 …]
|
| H A D | tlsv1_cred.c | 110 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 …]
|
| H A D | x509v3.c | 186 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 …]
|
| H A D | tlsv1_client_read.c | 42 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 …]
|
| /freebsd/contrib/mandoc/ |
| H A D | tbl_layout.c | 66 int ln, const char *p, int *pos) in mods() argument 74 while (p[*pos] == ' ' || p[*pos] == '\t') in mods() 75 (*pos)++; in mods() 79 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods() 84 if ('(' == p[*pos]) { in mods() 85 (*pos)++; in mods() 86 while (p[*pos] && ')' != p[*pos]) in mods() 87 (*pos) in mods() 214 cell(struct tbl_node * tbl,struct tbl_row * rp,int ln,const char * p,int * pos) cell() argument 272 tbl_layout(struct tbl_node * tbl,int ln,const char * p,int pos) tbl_layout() argument 362 cell_alloc(struct tbl_node * tbl,struct tbl_row * rp,enum tbl_cellt pos) cell_alloc() argument [all...] |
| H A D | tbl_opts.c | 66 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 …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | ctrl_iface.c | 81 char *pos; in set_bssid_filter() local 85 pos = val; in set_bssid_filter() 86 while (pos) { in set_bssid_filter() 87 if (*pos == '\0') in set_bssid_filter() 89 if (hwaddr_aton(pos, addr)) { in set_bssid_filter() 102 pos = os_strchr(pos, ' '); in set_bssid_filter() 103 if (pos) in set_bssid_filter() 104 pos++; in set_bssid_filter() 118 char *pos; in set_disallow_aps() local 130 pos = val; in set_disallow_aps() [all …]
|
| /freebsd/contrib/wpa/src/rsn_supp/ |
| H A D | wpa_ie.c | 45 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 …]
|
| /freebsd/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | VariableList.cpp | 64 iterator pos, end = m_variables.end(); in FindVariableIndex() local 65 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariableIndex() 66 if (pos->get() == var_sp.get()) in FindVariableIndex() 67 return std::distance(m_variables.begin(), pos); in FindVariableIndex() 75 iterator pos, end = m_variables.end(); in FindVariable() local 76 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariable() 77 if ((*pos)->NameMatches(name)) { in FindVariable() 78 if (include_static_members || !(*pos)->IsStaticMember()) { in FindVariable() 79 var_sp = (*pos); in FindVariable() 91 iterator pos, end = m_variables.end(); in FindVariable() local [all …]
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | wps_attr_parse.c | 21 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 …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | fils_hlp.c | 23 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 …]
|
| H A D | ieee802_11_shared.c | 24 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 …]
|
| /freebsd/contrib/processor-trace/libipt/src/ |
| H A D | pt_encoder.c | 50 encoder->pos = encoder->config.begin; in pt_encoder_init() 88 uint8_t *begin, *end, *pos; in pt_enc_sync_set() local 95 pos = begin + offset; in pt_enc_sync_set() 97 if (end < pos || pos < begin) in pt_enc_sync_set() 100 encoder->pos = pos; in pt_enc_sync_set() 112 raw = encoder->pos; in pt_enc_get_offset() 143 const uint8_t *begin, *end, *pos; in pt_reserve() local 149 pos = encoder->pos; in pt_reserve() 150 if (!pos) in pt_reserve() 156 pos += size; in pt_reserve() [all …]
|
| H A D | pt_packet.c | 37 static uint64_t pt_pkt_read_value(const uint8_t *pos, int size) in pt_pkt_read_value() argument 43 uint64_t byte = *pos++; in pt_pkt_read_value() 52 int pt_pkt_read_unknown(struct pt_packet *packet, const uint8_t *pos, in pt_pkt_read_unknown() argument 59 if (!packet || !pos || !config) in pt_pkt_read_unknown() 67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown() 73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown() 84 if (config->end < pos + size) in pt_pkt_read_unknown() 90 int pt_pkt_read_psb(const uint8_t *pos, const struct pt_config *config) in pt_pkt_read_psb() argument 94 if (!pos || !config) in pt_pkt_read_psb() 97 if (config->end < pos + ptps_psb) in pt_pkt_read_psb() [all …]
|
| H A D | pt_sync.c | 67 static const uint8_t *pt_find_psb(const uint8_t *pos, in pt_find_psb() argument 73 if (!pos || !config) in pt_find_psb() 84 if (*pos != pt_psb_hi) in pt_find_psb() 85 pos++; in pt_find_psb() 87 for (; (pos + 1) < end; pos += 2) { in pt_find_psb() 90 hi = pos[0]; in pt_find_psb() 91 lo = pos[1]; in pt_find_psb() 103 pos -= ptps_psb; in pt_find_psb() 106 if (pos < begin) in pt_find_psb() 110 if (pos[0] != pt_opc_psb || pos[1] != pt_ext_psb) in pt_find_psb() [all …]
|
| /freebsd/contrib/wpa/src/eap_peer/ |
| H A D | eap_fast_pac.c | 181 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 …]
|
| H A D | eap_teap_pac.c | 181 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 …]
|
| /freebsd/tools/tools/drm/radeon/mkregtable/ |
| H A D | mkregtable.c | 371 #define list_for_each(pos, head) \ argument 372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \ 373 pos = pos->next) 385 #define __list_for_each(pos, head) \ argument 386 for (pos = (head)->next; pos != (head); pos = pos->next) 393 #define list_for_each_prev(pos, head) \ argument 394 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \ 395 pos = pos->prev) 403 #define list_for_each_safe(pos, n, head) \ argument 404 for (pos = (head)->next, n = pos->next; pos != (head); \ [all …]
|
| /freebsd/contrib/less/ |
| H A D | jump.c | 30 POSITION pos; in jump_forw() local 56 pos = back_line(end_pos, NULL); in jump_forw() 57 if (pos == NULL_POSITION) in jump_forw() 61 jump_loc(pos, sc_height-1); in jump_forw() 89 POSITION pos; in jump_back() local 98 pos = find_pos(linenum); in jump_back() 99 if (pos != NULL_POSITION && ch_seek(pos) == 0) in jump_back() 102 set_attnpos(pos); in jump_back() 103 jump_loc(pos, jump_sline); in jump_back() 127 if (scrpos.pos == NULL_POSITION) in repaint() [all …]
|
| H A D | forwback.c | 79 POSITION pos; in eof_displayed() local 96 pos = position(offset ? BOTTOM_OFFSET : BOTTOM_PLUS_ONE); in eof_displayed() 97 return (pos == NULL_POSITION || pos == ch_length() || pos == soft_eof); in eof_displayed() 105 POSITION pos; in entire_file_displayed() local 112 pos = position(0); in entire_file_displayed() 113 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed() 134 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() argument 143 pos = forw_line_seg(pos, skipeol, FALSE, FALSE, NULL, NULL); in forw_line_pfx() 147 return pos; in forw_line_pfx() 174 POSITION pos = header_start_pos; in overlay_header() local [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Breakpoint/ |
| H A D | WatchpointList.cpp | 48 wp_collection::const_iterator pos, end = m_watchpoints.end(); in DumpWithLevel() 49 for (pos = m_watchpoints.begin(); pos != end; ++pos) in DumpWithLevel() 50 (*pos)->DumpWithLevel(s, description_level); in DumpWithLevel() 58 wp_collection::const_iterator pos, end = m_watchpoints.end(); in FindByAddress() 59 for (pos = m_watchpoints.begin(); pos != end; ++pos) { in FindByAddress() 60 lldb::addr_t wp_addr = (*pos) in FindByAddress() 46 wp_collection::const_iterator pos, end = m_watchpoints.end(); DumpWithLevel() local 56 wp_collection::const_iterator pos, end = m_watchpoints.end(); FindByAddress() local 74 wp_collection::const_iterator pos, end = m_watchpoints.end(); FindBySpec() local 114 wp_collection::const_iterator pos = GetIDConstIterator(watch_id); FindByID() local 141 wp_collection::const_iterator pos = m_watchpoints.begin(); GetByIndex() local 152 wp_collection::const_iterator pos = m_watchpoints.begin(); GetByIndex() local 161 wp_collection::const_iterator pos, end = m_watchpoints.end(); GetWatchpointIDs() local 169 wp_collection::iterator pos = GetIDIterator(watch_id); Remove() local 189 wp_collection::const_iterator pos, end = m_watchpoints.end(); GetHitCount() local 212 wp_collection::iterator pos, end = m_watchpoints.end(); GetDescription() local 223 wp_collection::iterator pos, end = m_watchpoints.end(); SetEnabledAll() local 233 wp_collection::iterator pos, end = m_watchpoints.end(); RemoveAll() local [all...] |
| /freebsd/contrib/wpa/src/eapol_auth/ |
| H A D | eapol_auth_dump.c | 124 char *pos, *end; in eapol_auth_dump_state() local 127 pos = buf; in eapol_auth_dump_state() 128 end = pos + buflen; in eapol_auth_dump_state() 130 ret = os_snprintf(pos, end - pos, "aWhile=%d\nquietWhile=%d\n" in eapol_auth_dump_state() 133 if (os_snprintf_error(end - pos, ret)) in eapol_auth_dump_state() 134 return pos - buf; in eapol_auth_dump_state() 135 pos += ret; in eapol_auth_dump_state() 138 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 176 if (os_snprintf_error(end - pos, ret)) in eapol_auth_dump_state() 177 return pos - buf; in eapol_auth_dump_state() [all …]
|