/freebsd-current/contrib/wpa/src/ap/ |
H A D | fils_hlp.c | 23 const u16 *pos; local 25 for (pos = buf; len >= 2; len -= 2) 26 sum += ntohs(*pos++); 28 sum += ntohs(*pos << 8); 39 u8 *pos, *end; local 53 pos = wpabuf_mhead(sta->hlp_dhcp_discover); 54 end = pos + wpabuf_len(sta->hlp_dhcp_discover); 55 dhcp = (struct dhcp_data *) pos; 56 pos = (u8 *) (dhcp + 1); 57 pos 154 u8 buf[1500], *pos, *end, *end_opt = NULL; local 334 const u8 *pos = msg, *end; local 478 fils_process_hlp_udp(struct hostapd_data *hapd, struct sta_info *sta, const u8 *dst, const u8 *pos, size_t len) argument 509 fils_process_hlp_ip(struct hostapd_data *hapd, struct sta_info *sta, const u8 *dst, const u8 *pos, size_t len) argument 539 fils_process_hlp_req(struct hostapd_data *hapd, struct sta_info *sta, const u8 *pos, size_t len) argument 576 fils_process_hlp(struct hostapd_data *hapd, struct sta_info *sta, const u8 *pos, int left) argument [all...] |
H A D | mbo_ap.c | 37 char channels[200], *pos, *end; local 63 pos = channels; 64 end = pos + sizeof(channels); 65 *pos = '\0'; 67 ret = os_snprintf(pos, end - pos, "%s%u", 69 if (os_snprintf_error(end - pos, ret)) { 70 *pos = '\0'; 73 pos += ret; 86 const u8 *pos, *att local 117 char *pos = buf, *end = buf + buflen; local 211 const u8 *pos, *end; local [all...] |
/freebsd-current/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_sync.h | 40 * starting at @pos using the trace configuration @config. 46 * Returns -pte_internal if @sync, @pos, or @config is NULL. 47 * Returns -pte_nosync if @pos lies outside of @config's buffer. 50 extern int pt_sync_forward(const uint8_t **sync, const uint8_t *pos, 52 extern int pt_sync_backward(const uint8_t **sync, const uint8_t *pos, 57 * Validate that @pos is within the bounds of @config's trace buffer and that 58 * there is a synchronization point at @pos. 60 * On success, stores @pos in @sync. 64 * Returns -pte_eos if @pos is outside of @config's trace buffer. 65 * Returns -pte_internal if @sync, @pos, o [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | llist.h | 84 #define llist_for_each_safe(pos, n, node) \ 85 for ((pos) = (node); \ 86 (pos) != NULL && \ 87 ((n) = (pos)->next, pos); \ 88 (pos) = (n)) 90 #define llist_for_each_entry_safe(pos, n, node, member) \ 91 for (pos = llist_entry((node), __typeof(*pos), member); \ 92 pos ! [all...] |
/freebsd-current/contrib/wpa/src/tls/ |
H A D | tlsv1_server_write.c | 45 u8 *pos, *rhdr, *hs_start, *hs_length, *ext_start; local 49 pos = *msgpos; 52 rhdr = pos; 53 pos += TLS_RECORD_HEADER_LEN; 80 hs_start = pos; 82 *pos++ = TLS_HANDSHAKE_TYPE_SERVER_HELLO; 84 hs_length = pos; 85 pos += 3; 88 WPA_PUT_BE16(pos, conn->rl.tls_version); 89 pos 192 u8 *pos, *rhdr, *hs_start, *hs_length, *cert_start; local 287 u8 *pos, *rhdr, *hs_start, *hs_length; local 373 u8 *pos, *rhdr, *hs_start, *hs_length, *server_params; local 698 u8 *pos, *rhdr, *hs_start, *hs_length; local 764 u8 *pos; local 834 u8 *pos, *hs_start; local 932 u8 *msg, *end, *pos; local 1012 u8 *msg, *end, *pos; local 1060 u8 *alert, *pos, *length; local [all...] |
H A D | pkcs1.c | 23 u8 *pos; local 44 pos = out; 45 *pos++ = 0x00; 46 *pos++ = block_type; /* BT */ 50 os_memset(pos, 0x00, ps_len); 51 pos += ps_len; 54 os_memset(pos, 0xff, ps_len); 55 pos += ps_len; 58 if (os_get_random(pos, ps_len) < 0) { 64 if (*pos 102 u8 *pos, *end; local 139 u8 *pos; local 208 const u8 *pos, *end, *next, *da_end; local [all...] |
H A D | tlsv1_client_write.c | 47 u8 *hello, *end, *pos, *hs_length, *hs_start, *rhdr; local 82 pos = rhdr + TLS_RECORD_HEADER_LEN; 87 hs_start = pos; 89 *pos++ = TLS_HANDSHAKE_TYPE_CLIENT_HELLO; 91 hs_length = pos; 92 pos += 3; 95 WPA_PUT_BE16(pos, tls_version); 96 pos += 2; 98 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); 99 pos 255 u8 *pos, *rhdr, *hs_start, *hs_length, *cert_start; local 336 tlsv1_key_x_dh(struct tlsv1_client *conn, u8 **pos, u8 *end) argument 459 tlsv1_key_x_rsa(struct tlsv1_client *conn, u8 **pos, u8 *end) argument 509 u8 *pos, *rhdr, *hs_start, *hs_length; local 567 u8 *pos, *rhdr, *hs_start, *hs_length, *signed_start; local 772 u8 *pos, *hs_start; local 863 u8 *msg, *end, *pos; local 906 u8 *msg, *end, *pos; local 964 u8 *alert, *pos, *length; local [all...] |
/freebsd-current/contrib/wpa/hostapd/ |
H A D | config_file.c | 34 char buf[128], *pos, *pos2, *pos3; local 49 pos = buf; 50 while (*pos != '\0') { 51 if (*pos == '\n') { 52 *pos = '\0'; 55 pos++; 62 pos = buf + 1; 64 vlan_id = strtol(buf, &pos, 10); 65 if (buf == pos || vlan_id < 1 || 74 while (*pos 171 char buf[128], *pos; local 242 hostapd_config_eap_user_salted(struct hostapd_eap_user *user, const char *hash, size_t len, char **pos, int line, const char *fname) argument 301 char buf[512], *pos, *start, *pos2; local 858 char *pos; local 878 char *pos, *end; local 953 rkh_derive_key(const char *pos, u8 *key, size_t key_len) argument 975 char *pos, *next; local 1021 char *pos, *next; local 1228 char *pos, *end; local 1254 parse_roaming_consortium(struct hostapd_bss_config *bss, char *pos, int line) argument 1286 parse_lang_string(struct hostapd_lang_string **array, unsigned int *count, char *pos) argument 1334 parse_venue_name(struct hostapd_bss_config *bss, char *pos, int line) argument 1346 parse_venue_url(struct hostapd_bss_config *bss, char *pos, int line) argument 1388 char *pos; local 1464 char *pos, *end, *rpos; local 1652 char *pos = buf; local 1696 char *pos; local 1730 char *pos; local 1791 hs20_parse_oper_friendly_name(struct hostapd_bss_config *bss, char *pos, int line) argument 1804 hs20_parse_icon(struct hostapd_bss_config *bss, char *pos) argument 1857 hs20_parse_osu_ssid(struct hostapd_bss_config *bss, char *pos, int line) argument 1878 hs20_parse_osu_server_uri(struct hostapd_bss_config *bss, char *pos, int line) argument 1898 hs20_parse_osu_friendly_name(struct hostapd_bss_config *bss, char *pos, int line) argument 1917 hs20_parse_osu_nai(struct hostapd_bss_config *bss, char *pos, int line) argument 1934 hs20_parse_osu_nai2(struct hostapd_bss_config *bss, char *pos, int line) argument 1952 hs20_parse_osu_method_list(struct hostapd_bss_config *bss, char *pos, int line) argument 1969 hs20_parse_osu_icon(struct hostapd_bss_config *bss, char *pos, int line) argument 1993 hs20_parse_osu_service_desc(struct hostapd_bss_config *bss, char *pos, int line) argument 2012 hs20_parse_operator_icon(struct hostapd_bss_config *bss, char *pos, int line) argument 2034 hostapd_config_parse_acs_chan_bias(struct hostapd_config *conf, char *pos) argument 2167 char *pos, *next; local 2203 const char *pos = val, *pos2, *end = NULL; local 2307 hostapd_dpp_controller_parse(struct hostapd_bss_config *bss, const char *pos) argument 2352 hostapd_config_fill(struct hostapd_config *conf, struct hostapd_bss_config *bss, const char *buf, char *pos, int line) argument 4747 char buf[4096], *pos; local [all...] |
/freebsd-current/contrib/ntp/libjsmn/ |
H A D | jsmn.c | 42 start = parser->pos; 44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { 45 switch (js[parser->pos]) { 54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { 55 parser->pos = start; 61 parser->pos = start; 67 parser->pos [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Symbol/ |
H A D | TypeList.cpp | 38 // iterator pos = m_types.find(uid); 39 // if (pos != m_types.end()) 40 // return pos->second; 51 // iterator pos, end; 52 // for (pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) 53 // if (pos->second->GetName() == name) 54 // types.Insert (pos->second); 67 iterator pos, en local 123 iterator pos, end = m_types.end(); local 197 iterator pos, end = m_types.end(); local [all...] |
/freebsd-current/contrib/less/ |
H A D | linenum.c | 45 POSITION pos; /* File position */ member in struct:linenum_info 98 anchor.pos = (POSITION)0; 115 p->gap = p->next->pos - p->prev->pos; 120 * The specified position (pos) should be the file position of the 123 public void add_lnum(LINENUM linenum, POSITION pos) argument 135 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next) 166 new->pos = pos; 260 find_linenum(POSITION pos) argument 445 POSITION pos; local 466 POSITION pos = ch_zero(); local [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Breakpoint/ |
H A D | WatchpointList.cpp | 48 wp_collection::const_iterator pos, end = m_watchpoints.end(); local 49 for (pos = m_watchpoints.begin(); pos != end; ++pos) 50 (*pos)->DumpWithLevel(s, description_level); 58 wp_collection::const_iterator pos, end = m_watchpoints.end(); local 59 for (pos = m_watchpoints.begin(); pos != end; ++pos) { 60 lldb::addr_t wp_addr = (*pos) 76 wp_collection::const_iterator pos, end = m_watchpoints.end(); local 116 wp_collection::const_iterator pos = GetIDConstIterator(watch_id); local 143 wp_collection::const_iterator pos = m_watchpoints.begin(); local 154 wp_collection::const_iterator pos = m_watchpoints.begin(); local 163 wp_collection::const_iterator pos, end = m_watchpoints.end(); local 171 wp_collection::iterator pos = GetIDIterator(watch_id); local 192 wp_collection::const_iterator pos, end = m_watchpoints.end(); local 215 wp_collection::iterator pos, end = m_watchpoints.end(); local 226 wp_collection::iterator pos, end = m_watchpoints.end(); local 236 wp_collection::iterator pos, end = m_watchpoints.end(); local [all...] |
/freebsd-current/contrib/wpa/src/eapol_auth/ |
H A D | eapol_auth_dump.c | 124 char *pos, *end; local 127 pos = buf; 128 end = pos + buflen; 130 ret = os_snprintf(pos, end - pos, "aWhile=%d\nquietWhile=%d\n" 133 if (os_snprintf_error(end - pos, ret)) 134 return pos - buf; 135 pos += ret; 138 ret = os_snprintf(pos, end - pos, [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDeclContext.cpp | 62 collection::const_iterator pos; 71 for (pos = begin, rhs_pos = rhs_begin; pos != end; ++pos, ++rhs_pos) { 72 if (pos->tag != rhs_pos->tag) { 75 if (pos->tag == DW_TAG_structure_type && 78 if (pos->tag == DW_TAG_class_type && 85 for (pos = begin, rhs_pos = rhs_begin; pos != end; ++pos, [all...] |
/freebsd-current/contrib/wpa/src/crypto/ |
H A D | sha1-prf.c | 34 size_t pos, plen; local 47 pos = 0; 48 while (pos < buf_len) { 49 plen = buf_len - pos; 52 &buf[pos])) 54 pos += SHA1_MAC_LEN; 59 os_memcpy(&buf[pos], hash, plen);
|
H A D | aes-cbc.c | 28 u8 *pos = data; local 42 cbc[j] ^= pos[j]; 44 os_memcpy(pos, cbc, AES_BLOCK_SIZE); 45 pos += AES_BLOCK_SIZE; 64 u8 *pos = data; local 77 os_memcpy(tmp, pos, AES_BLOCK_SIZE); 78 aes_decrypt(ctx, pos, pos); 80 pos[j] ^= cbc[j]; 82 pos [all...] |
/freebsd-current/contrib/netcat/ |
H A D | atomicio.c | 42 size_t pos = 0; local 48 while (n > pos) { 49 res = (f) (fd, s + pos, n - pos); 61 return pos; 63 pos += (size_t)res; 66 return (pos);
|
/freebsd-current/contrib/wpa/wpa_supplicant/ |
H A D | wpa_passphrase.c | 19 char *ssid, *passphrase, buf[64], *pos; local 40 pos = buf; 41 while (*pos != '\0') { 42 if (*pos == '\r' || *pos == '\n') { 43 *pos = '\0'; 46 pos++;
|
/freebsd-current/contrib/wpa/src/common/ |
H A D | cli.c | 193 int get_cmd_arg_num(const char *str, int pos) argument 197 for (i = 0; i <= pos; i++) { 200 while (i <= pos && str[i] != ' ') 214 char *pos, *end; local 216 pos = buf; 219 res = os_snprintf(pos, end - pos, "%s", cmd); 220 if (os_snprintf_error(end - pos, res)) 222 pos += res; 225 res = os_snprintf(pos, en 242 char *pos; local [all...] |
/freebsd-current/contrib/wpa/src/eap_common/ |
H A D | eap_common.c | 70 const u8 *pos; local 78 pos = (const u8 *) (hdr + 1); 80 if (*pos == EAP_TYPE_EXPANDED) { 88 pos++; 89 exp_vendor = WPA_GET_BE24(pos); 90 pos += 3; 91 exp_type = WPA_GET_BE32(pos); 92 pos += 4; 100 return pos; 102 if (vendor != EAP_VENDOR_IETF || *pos ! 209 erp_parse_tlvs(const u8 *pos, const u8 *end, struct erp_tlvs *tlvs, int stop_at_keyname) argument [all...] |
/freebsd-current/lib/libc/tests/string/ |
H A D | strncmp_test.c | 50 size_t a_off, size_t b_off, size_t len, size_t pos) 65 a_orig = a_str[pos]; 66 b_orig = b_str[pos]; 72 if (pos < len) { 73 a_str[pos] = '\0'; 77 alignment_testcase(a_str, b_str, -1, pos + 1); 78 alignment_testcase(a_str, b_str, 0, pos); 79 a_str[pos] = a_orig; 81 b_str[pos] = '\0'; 85 alignment_testcase(a_str, b_str, 1, pos 49 check_strncmp_alignments(char a[], char b[], size_t a_off, size_t b_off, size_t len, size_t pos) argument 126 size_t a_off, b_off, len, pos; local [all...] |
/freebsd-current/sys/dev/mlx5/mlx5_core/ |
H A D | fs_core.h | 190 #define fs_list_for_each_entry(pos, cond, root) \ 191 list_for_each_entry(pos, root, base.list) \ 194 #define fs_list_for_each_entry_continue(pos, cond, root) \ 195 list_for_each_entry_continue(pos, root, base.list) \ 198 #define fs_list_for_each_entry_reverse(pos, cond, root) \ 199 list_for_each_entry_reverse(pos, root, base.list) \ 202 #define fs_list_for_each_entry_continue_reverse(pos, cond, root) \ 203 list_for_each_entry_continue_reverse(pos, root, base.list) \ 206 #define fs_for_each_ft(pos, prio) \ 207 fs_list_for_each_entry(pos, (po [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Core/ |
H A D | ValueObjectList.cpp | 65 collection::iterator pos, end = m_value_objects.end(); local 66 for (pos = m_value_objects.begin(); pos != end; ++pos) { 67 ValueObject *valobj = (*pos).get(); 69 val_obj_sp = *pos; 78 collection::iterator pos, end = m_value_objects.end(); local 80 for (pos = m_value_objects.begin(); pos != end; ++pos) { 95 collection::iterator pos, end = m_value_objects.end(); local [all...] |
/freebsd-current/contrib/processor-trace/libipt/src/ |
H A D | pt_encoder.c | 50 encoder->pos = encoder->config.begin; 88 uint8_t *begin, *end, *pos; local 95 pos = begin + offset; 97 if (end < pos || pos < begin) 100 encoder->pos = pos; 112 raw = encoder->pos; 143 const uint8_t *begin, *end, *pos; local 149 pos 200 pt_encode_int(uint8_t *pos, uint64_t val, int size) argument 222 uint8_t *pos; local 251 uint8_t *pos, *begin; local [all...] |
/freebsd-current/contrib/mandoc/ |
H A D | tbl_data.c | 44 int ln, const char *p, int *pos) 57 startpos = *pos; 62 *pos = ccp - p; 67 while (cp != NULL && cp->pos == TBL_CELL_SPAN) 80 cp->pos = TBL_CELL_LEFT; 89 while (p[*pos] != '\0') 90 (*pos)++; 102 dat->pos = TBL_DATA_NONE; 112 if (cp->pos == TBL_CELL_DOWN || 113 (*pos 43 getdata(struct tbl_node *tbl, struct tbl_span *dp, int ln, const char *p, int *pos) argument 197 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) argument 261 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos) argument [all...] |