Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c593 char *rpos, *rend; in sim_req_auth() local
609 rpos = resp; in sim_req_auth()
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
611 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
613 rpos += ret; in sim_req_auth()
622 *rpos++ = ' '; in sim_req_auth()
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
624 *rpos++ = ':'; in sim_req_auth()
625 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
626 *rpos++ = ':'; in sim_req_auth()
[all …]
H A Dconfig_file.c1498 char *pos, *end, *rpos; in parse_nai_realm() local
1610 rpos = realm->realm_buf; in parse_nai_realm()
1612 while (*rpos) { in parse_nai_realm()
1617 realm->realm[i++] = rpos; in parse_nai_realm()
1618 rpos = os_strchr(rpos, ';'); in parse_nai_realm()
1619 if (rpos == NULL) in parse_nai_realm()
1621 *rpos++ = '\0'; in parse_nai_realm()
/freebsd/lib/libopenbsd/
H A Dimsg-buffer.c156 iov[i].iov_base = buf->buf + buf->rpos; in ibuf_write()
157 iov[i].iov_len = buf->wpos - buf->rpos; in ibuf_write()
203 if (buf->rpos + n >= buf->wpos) { in msgbuf_drain()
204 n -= buf->wpos - buf->rpos; in msgbuf_drain()
207 buf->rpos += n; in msgbuf_drain()
242 iov[i].iov_base = buf->buf + buf->rpos; in msgbuf_write()
243 iov[i].iov_len = buf->wpos - buf->rpos; in msgbuf_write()
H A Dimsg.h34 size_t rpos; member
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_md5.c35 u8 *rpos, id; in eap_md5_process() local
88 rpos = wpabuf_put(resp, CHAP_MD5_LEN); in eap_md5_process()
90 rpos)) { in eap_md5_process()
96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN); in eap_md5_process()
H A Deap_pax.c122 u8 *rpos; in eap_pax_process_std_1() local
206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
210 (u8 *) data->cid, data->cid_len, rpos); in eap_pax_process_std_1()
212 rpos, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
219 NULL, 0, NULL, 0, rpos); in eap_pax_process_std_1()
220 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", rpos, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
237 u8 *rpos, mac[EAP_PAX_MAC_LEN]; in eap_pax_process_std_3() local
314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
317 NULL, 0, NULL, 0, rpos) < 0) { in eap_pax_process_std_3()
[all …]
H A Deap_sake.c192 u8 *rpos; in eap_sake_process_challenge() local
268 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
272 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_challenge()
273 rpos)) { in eap_sake_process_challenge()
296 u8 *rpos; in eap_sake_process_confirm() local
350 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
354 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_confirm()
355 rpos)) { in eap_sake_process_confirm()
H A Deap_leap.c66 u8 challenge_len, *rpos; in eap_leap_process_request() local
117 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request()
118 if ((pwhash && challenge_response(challenge, password, rpos)) || in eap_leap_process_request()
120 nt_challenge_response(challenge, password, password_len, rpos))) { in eap_leap_process_request()
126 os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
128 rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
H A Deap_gpsk.c319 u8 *rpos, *start; in eap_gpsk_send_gpsk_2() local
396 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2()
398 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_2()
631 u8 *rpos, *start; in eap_gpsk_send_gpsk_4() local
649 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
651 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_4()
H A Deap_tnc.c208 u8 *rpos, *rpos1; in eap_tnc_process() local
390 rpos = tncc_copy_send_buf(data->tncc, rpos1); in eap_tnc_process()
391 wpabuf_put(resp, rpos - rpos1); in eap_tnc_process()
H A Deap_eke.c362 u8 *rpos; in eap_eke_process_commit() local
451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit()
452 if (eap_eke_dhcomp(&data->sess, key, pub, rpos) < 0) { in eap_eke_process_commit()
462 rpos, data->sess.dhcomp_len); in eap_eke_process_commit()
/freebsd/sys/dev/hid/
H A Dhid.c710 uint32_t rpos; in hid_get_data_sub() local
723 rpos = (hpos / 8); in hid_get_data_sub()
725 rpos += n; in hid_get_data_sub()
727 rpos--; in hid_get_data_sub()
728 if (rpos < len) in hid_get_data_sub()
729 data |= buf[rpos] << (8 * n); in hid_get_data_sub()
770 uint32_t rpos; in hid_put_udata() local
782 rpos = (hpos / 8); in hid_put_udata()
786 rpos += n; in hid_put_udata()
788 rpos--; in hid_put_udata()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DSectionLoadHistory.cpp47 StopIDToSectionLoadList::reverse_iterator rpos = in GetSectionLoadListForStopID() local
49 return rpos->second.get(); in GetSectionLoadListForStopID()
80 StopIDToSectionLoadList::reverse_iterator rpos = in GetSectionLoadListForStopID() local
83 new SectionLoadList(*rpos->second)); in GetSectionLoadListForStopID()
H A DSectionLoadList.cpp242 addr_to_sect_collection::const_reverse_iterator rpos = in ResolveLoadAddress() local
244 if (load_addr >= rpos->first) { in ResolveLoadAddress()
245 addr_t offset = load_addr - rpos->first; in ResolveLoadAddress()
247 rpos->second->GetByteSize() + (allow_section_end ? 1 : 0)) { in ResolveLoadAddress()
250 return rpos->second->ResolveContainedAddress(offset, so_addr, in ResolveLoadAddress()
/freebsd/sbin/dhclient/
H A Dprivsep.c56 n = write(sock, buf->buf + buf->rpos, buf->size - buf->rpos); in buf_close()
58 buf->rpos += n; in buf_close()
65 if (buf->rpos < buf->size) in buf_close()
67 (unsigned long)buf->size, (long)buf->rpos); in buf_close()
H A Dprivsep.h28 size_t rpos; member
/freebsd/contrib/wpa/src/common/
H A Dwpa_common.c2900 u8 *start, *end, *rpos, *rend; in wpa_insert_pmkid() local
2919 rpos = start + 2; in wpa_insert_pmkid()
2920 rend = rpos + start[1]; in wpa_insert_pmkid()
2923 rpos += 2 + 4; in wpa_insert_pmkid()
2925 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
2927 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
2929 if (rpos == rend) { in wpa_insert_pmkid()
2931 os_memmove(rpos + 2, rpos, end - rpos); in wpa_insert_pmkid()
2932 *rpos++ = 0; in wpa_insert_pmkid()
2933 *rpos++ = 0; in wpa_insert_pmkid()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dfils_hlp.c164 const u8 *rpos; in fils_dhcp_handler() local
291 rpos = wpabuf_head(resp); in fils_dhcp_handler()
305 wpabuf_put_data(sta->fils_hlp_resp, rpos, len - 1); in fils_dhcp_handler()
306 rpos += len - 1; in fils_dhcp_handler()
312 wpabuf_put_data(sta->fils_hlp_resp, rpos, len); in fils_dhcp_handler()
313 rpos += len; in fils_dhcp_handler()
H A Dgas_serv.c486 const u8 *rpos, *rend; in hs20_add_nai_home_realm_matches() local
491 rpos = realm_name; in hs20_add_nai_home_realm_matches()
492 while (rpos < realm_name + realm_len && in hs20_add_nai_home_realm_matches()
494 for (rend = rpos; in hs20_add_nai_home_realm_matches()
503 rend - rpos || in hs20_add_nai_home_realm_matches()
504 os_strncmp((char *) rpos, in hs20_add_nai_home_realm_matches()
506 rend - rpos) != 0) in hs20_add_nai_home_realm_matches()
513 rpos = rend + 1; in hs20_add_nai_home_realm_matches()
H A Dwpa_auth_ft.c2529 const u8 *rpos, *start; in wpa_ft_process_ric() local
2534 rpos = ric; in wpa_ft_process_ric()
2535 while (rpos + sizeof(*rdie) < ric + ric_len) { in wpa_ft_process_ric()
2536 if (rpos[0] != WLAN_EID_RIC_DATA || rpos[1] < sizeof(*rdie) || in wpa_ft_process_ric()
2537 rpos + 2 + rpos[1] > ric + ric_len) in wpa_ft_process_ric()
2539 rdie = (const struct rsn_rdie *) (rpos + 2); in wpa_ft_process_ric()
2540 rpos += 2 + rpos[1]; in wpa_ft_process_ric()
2541 start = rpos; in wpa_ft_process_ric()
2543 while (rpos + 2 <= ric + ric_len && in wpa_ft_process_ric()
2544 rpos + 2 + rpos[1] <= ric + ric_len) { in wpa_ft_process_ric()
[all …]
/freebsd/usr.bin/script/
H A Dscript.c67 size_t rpos; member
343 be->rpos = 0; in main()
351 cc = write(master, be->ibuf + be->rpos, in main()
364 (void)fwrite(be->ibuf + be->rpos, in main()
372 be->rpos += cc; in main()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_tnc.c130 u8 *rpos, *rpos1; in eap_tnc_build() local
161 rpos = tncs_copy_send_buf(data->tncs, rpos1); in eap_tnc_build()
162 wpabuf_put(req, rpos - rpos1); in eap_tnc_build()
/freebsd/contrib/bc/include/
H A Dhistory.h249 l->len, l->pos, l->oldcolpos, plen, rows, rpos, \
/freebsd/tools/lua/
H A Dtemplate.lua124 local function rpos(view, s) function
438 local r = rpos(view, s - 1)
538 local r = rpos(view, s - 1)
/freebsd/contrib/ee/
H A Dee.c248 unsigned char *resiz_line(int factor, struct text *rline, int rpos);
669 resiz_line(int factor, struct text *rline, int rpos) in resiz_line() argument
676 for (resiz_var = 1 ; (resiz_var < rpos) ; resiz_var++) in resiz_line()