Home
last modified time | relevance | path

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

12345

/third_party/musl/src/network/
Ddns_parse.c4 int __dns_parse(const unsigned char *r, int rlen, int (*callback)(void *, int, const void *, int, c… in __dns_parse() argument
10 if (rlen<12) return -1; in __dns_parse()
17 while (p-r < rlen && *p-1U < 127) p++; in __dns_parse()
18 if (*p>193 || (*p==193 && p[1]>254) || p>r+rlen-6) in __dns_parse()
23 while (p-r < rlen && *p-1U < 127) p++; in __dns_parse()
24 if (*p>193 || (*p==193 && p[1]>254) || p>r+rlen-6) in __dns_parse()
28 if (p+len > r+rlen) return -1; in __dns_parse()
Dres_msend.c43 int rlen; in __res_msend_rc() local
132 while ((rlen = recvfrom(fd, answers[next], asize, 0, in __res_msend_rc()
136 if (rlen < 4) continue; in __res_msend_rc()
167 alens[i] = rlen; in __res_msend_rc()
171 memcpy(answers[i], answers[next], rlen); in __res_msend_rc()
/third_party/libwebsockets/lib/roles/http/server/
Dfops-zip.c498 lws_filepos_t ramount, rlen, cur = lws_vfs_tell(fd); in lws_fops_zip_read() local
514 rlen = len; in lws_fops_zip_read()
515 if (rlen > fd->pos - priv->exp_uncomp_pos) in lws_fops_zip_read()
516 rlen = fd->pos - priv->exp_uncomp_pos; in lws_fops_zip_read()
517 if (lws_fops_zip_read(fd, amount, buf, rlen)) in lws_fops_zip_read()
528 rlen = sizeof(priv->rbuf); in lws_fops_zip_read()
529 if (rlen > priv->hdr.comp_size - in lws_fops_zip_read()
531 rlen = priv->hdr.comp_size - in lws_fops_zip_read()
537 rlen)) in lws_fops_zip_read()
580 rlen = sizeof(hd) - fd->pos; in lws_fops_zip_read()
[all …]
/third_party/libxml2/doc/examples/
Dio1.c24 static int rlen; variable
55 rlen = strlen(result); in sqlOpen()
71 rlen = 0; in sqlClose()
92 if (len > rlen) len = rlen; in sqlRead()
94 rlen -= len; in sqlRead()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_gtc.c98 size_t rlen; in eap_gtc_process() local
100 pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_GTC, respData, &rlen); in eap_gtc_process()
101 if (pos == NULL || rlen < 1) in eap_gtc_process()
104 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-GTC: Response", pos, rlen); in eap_gtc_process()
110 if (rlen < 10) { in eap_gtc_process()
117 end = pos + rlen; in eap_gtc_process()
161 rlen = end - pos; in eap_gtc_process()
164 pos, rlen); in eap_gtc_process()
176 if (rlen != sm->user->password_len || in eap_gtc_process()
177 os_memcmp_const(pos, sm->user->password, rlen) != 0) { in eap_gtc_process()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_gtc.c98 size_t rlen; in eap_gtc_process() local
100 pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_GTC, respData, &rlen); in eap_gtc_process()
101 if (pos == NULL || rlen < 1) in eap_gtc_process()
104 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-GTC: Response", pos, rlen); in eap_gtc_process()
110 if (rlen < 10) { in eap_gtc_process()
117 end = pos + rlen; in eap_gtc_process()
161 rlen = end - pos; in eap_gtc_process()
164 pos, rlen); in eap_gtc_process()
176 if (rlen != sm->user->password_len || in eap_gtc_process()
177 os_memcmp_const(pos, sm->user->password, rlen) != 0) { in eap_gtc_process()
/third_party/uboot/u-boot-2020.01/net/
Dnfs.c614 int rlen; in nfs_readlink_reply() local
638 rlen = ntohl(rpc_pkt.u.reply.data[1 + nfsv3_data_offset]); in nfs_readlink_reply()
640 if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len) in nfs_readlink_reply()
650 rlen); in nfs_readlink_reply()
651 nfs_path[pathlen + rlen] = 0; in nfs_readlink_reply()
655 rlen); in nfs_readlink_reply()
656 nfs_path[rlen] = 0; in nfs_readlink_reply()
664 int rlen; in nfs_read_reply() local
694 rlen = ntohl(rpc_pkt.u.reply.data[18]); in nfs_read_reply()
701 rlen = ntohl(rpc_pkt.u.reply.data[1 + nfsv3_data_offset]); in nfs_read_reply()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_server_write.c47 size_t rlen; in tls_write_server_hello() local
175 &rlen) < 0) { in tls_write_server_hello()
181 pos = rhdr + rlen; in tls_write_server_hello()
193 size_t rlen; in tls_write_server_certificate() local
265 &rlen) < 0) { in tls_write_server_certificate()
271 pos = rhdr + rlen; in tls_write_server_certificate()
288 size_t rlen; in tls_write_server_certificate_status() local
352 &rlen) < 0) { in tls_write_server_certificate_status()
358 pos = rhdr + rlen; in tls_write_server_certificate_status()
374 size_t rlen; in tls_write_server_key_exchange() local
[all …]
Dtlsv1_record.c282 size_t i, rlen, hlen; in tlsv1_record_receive() local
299 rlen = WPA_GET_BE16(in_data + 3); in tlsv1_record_receive()
301 "length %d", ct, in_data[1], in_data[2], (int) rlen); in tlsv1_record_receive()
316 if (TLS_RECORD_HEADER_LEN + rlen > 18432) { in tlsv1_record_receive()
318 (unsigned long) (TLS_RECORD_HEADER_LEN + rlen)); in tlsv1_record_receive()
326 if (rlen > in_len) { in tlsv1_record_receive()
329 (unsigned long) rlen, (unsigned long) in_len); in tlsv1_record_receive()
334 in_data, rlen); in tlsv1_record_receive()
346 in_len = rlen; in tlsv1_record_receive()
484 return TLS_RECORD_HEADER_LEN + rlen; in tlsv1_record_receive()
Dtlsv1_client_write.c268 size_t rlen; in tls_write_client_certificate() local
332 &rlen) < 0) { in tls_write_client_certificate()
338 pos = rhdr + rlen; in tls_write_client_certificate()
522 size_t rlen; in tls_write_client_key_exchange() local
561 &rlen) < 0) { in tls_write_client_key_exchange()
567 pos = rhdr + rlen; in tls_write_client_key_exchange()
580 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
732 &rlen) < 0) { in tls_write_client_certificate_verify()
738 pos = rhdr + rlen; in tls_write_client_certificate_verify()
751 size_t rlen; in tls_write_client_change_cipher_spec() local
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_server_write.c47 size_t rlen; in tls_write_server_hello() local
175 &rlen) < 0) { in tls_write_server_hello()
181 pos = rhdr + rlen; in tls_write_server_hello()
193 size_t rlen; in tls_write_server_certificate() local
265 &rlen) < 0) { in tls_write_server_certificate()
271 pos = rhdr + rlen; in tls_write_server_certificate()
288 size_t rlen; in tls_write_server_certificate_status() local
352 &rlen) < 0) { in tls_write_server_certificate_status()
358 pos = rhdr + rlen; in tls_write_server_certificate_status()
374 size_t rlen; in tls_write_server_key_exchange() local
[all …]
Dtlsv1_record.c282 size_t i, rlen, hlen; in tlsv1_record_receive() local
299 rlen = WPA_GET_BE16(in_data + 3); in tlsv1_record_receive()
301 "length %d", ct, in_data[1], in_data[2], (int) rlen); in tlsv1_record_receive()
316 if (TLS_RECORD_HEADER_LEN + rlen > 18432) { in tlsv1_record_receive()
318 (unsigned long) (TLS_RECORD_HEADER_LEN + rlen)); in tlsv1_record_receive()
326 if (rlen > in_len) { in tlsv1_record_receive()
329 (unsigned long) rlen, (unsigned long) in_len); in tlsv1_record_receive()
334 in_data, rlen); in tlsv1_record_receive()
346 in_len = rlen; in tlsv1_record_receive()
484 return TLS_RECORD_HEADER_LEN + rlen; in tlsv1_record_receive()
Dtlsv1_client_write.c268 size_t rlen; in tls_write_client_certificate() local
332 &rlen) < 0) { in tls_write_client_certificate()
338 pos = rhdr + rlen; in tls_write_client_certificate()
522 size_t rlen; in tls_write_client_key_exchange() local
561 &rlen) < 0) { in tls_write_client_key_exchange()
567 pos = rhdr + rlen; in tls_write_client_key_exchange()
580 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
732 &rlen) < 0) { in tls_write_client_certificate_verify()
738 pos = rhdr + rlen; in tls_write_client_certificate_verify()
751 size_t rlen; in tls_write_client_change_cipher_spec() local
[all …]
/third_party/python/Lib/
Dbinhex.py161 name, finfo, dlen, rlen = name_finfo_dlen_rlen
175 self.rlen = rlen
197 d4 = struct.pack('>ii', self.dlen, self.rlen)
224 raise Error('Incorrect data size, diff=%r' % (self.rlen,))
233 self.rlen = self.rlen - len(data)
244 if self.rlen != 0:
245 raise Error("Incorrect resource-datasize, diff=%r" % (self.rlen,))
421 self.rlen = struct.unpack('>l', rest[15:19])[0]
460 n = min(n, self.rlen)
462 n = self.rlen
[all …]
/third_party/libwebsockets/lib/misc/
Dpeer-limits.c63 socklen_t rlen = 0; in lws_get_or_create_peer() local
79 rlen = sizeof(addr); in lws_get_or_create_peer()
80 if (getpeername(sockfd, (struct sockaddr*)&addr, &rlen)) in lws_get_or_create_peer()
90 rlen = sizeof(s->sin_addr); in lws_get_or_create_peer()
96 rlen = sizeof(s->sin6_addr); in lws_get_or_create_peer()
101 for (n = 0; n < (int)rlen; n++) in lws_get_or_create_peer()
110 if (peerx->af == af && !memcmp(q, peerx->addr, rlen)) { in lws_get_or_create_peer()
130 memcpy(peer->addr, q, rlen); in lws_get_or_create_peer()
/third_party/curl/lib/
Dcurl_get_line.c43 size_t rlen = strlen(b); in Curl_get_line() local
44 if(rlen && (b[rlen-1] == '\n')) { in Curl_get_line()
/third_party/libxml2/
Dtestlimits.c91 static int rlen; variable
132 rlen = strlen(hugeTests[currentTest].start); in hugeOpen()
187 if (len >= rlen) { in hugeRead()
188 len = rlen; in hugeRead()
189 rlen = 0; in hugeRead()
196 rlen -= len; in hugeRead()
200 if (len >= rlen) { in hugeRead()
201 len = rlen; in hugeRead()
202 rlen = 0; in hugeRead()
208 rlen -= len; in hugeRead()
[all …]
/third_party/libuv/src/unix/
Dos390-syscalls.c444 ssize_t rlen; in os390_readlink() local
458 rlen = readlink(path, tmpbuf, len); in os390_readlink()
459 if (rlen < 0) { in os390_readlink()
461 return rlen; in os390_readlink()
464 if (rlen < 3 || strncmp("/$", tmpbuf, 2) != 0) { in os390_readlink()
466 memcpy(buf, tmpbuf, rlen); in os390_readlink()
468 return rlen; in os390_readlink()
475 tmpbuf[rlen] = '\0'; in os390_readlink()
496 rlen = plen + vlen; in os390_readlink()
497 if (rlen > len) { in os390_readlink()
[all …]
/third_party/ffmpeg/libavcodec/
Dpixlet.c131 int rlen, escape, flag = 0; in read_low_coeffs() local
167 rlen = get_bits(bc, 16); in read_low_coeffs()
172 rlen = value + escape * cnt1 - 1; in read_low_coeffs()
175 rlen = escape * cnt1; in read_low_coeffs()
179 if (rlen > size - i) in read_low_coeffs()
181 i += rlen; in read_low_coeffs()
183 for (k = 0; k < rlen; k++) { in read_low_coeffs()
192 flag = rlen < 0xFFFF ? 1 : 0; in read_low_coeffs()
205 unsigned cnt1, shbits, rlen, nbits, length, i = 0, j = 0, k; in read_high_coeffs() local
280 rlen = value + escape * cnt1 - 1; in read_high_coeffs()
[all …]
/third_party/uboot/u-boot-2020.01/examples/api/
Dglue.c275 lbasize_t *rlen) in ub_dev_read() argument
288 if (!err && rlen) in ub_dev_read()
289 *rlen = act_len; in ub_dev_read()
305 int ub_dev_recv(int handle, void *buf, int len, int *rlen) in ub_dev_recv() argument
317 if (!err && rlen) in ub_dev_recv()
318 *rlen = act_len; in ub_dev_recv()
Dglue.h57 lbastart_t start, lbasize_t *rlen);
59 int ub_dev_recv(int handle, void *buf, int len, int *rlen);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dpcsc_funcs.c404 int rlen, rec; in scard_get_aid() local
427 rlen = scard_get_record_len(scard, rec, in scard_get_aid()
429 if (rlen < 0) { in scard_get_aid()
435 if (rlen > (int) blen) { in scard_get_aid()
439 if (scard_read_record(scard, buf, rlen, rec, in scard_get_aid()
445 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR record", buf, rlen); in scard_get_aid()
454 if (efdir->appl_template_len > rlen - 2) { in scard_get_aid()
457 efdir->appl_template_len, rlen); in scard_get_aid()
781 uint32_t rlen; in scard_transmit() local
783 unsigned long rlen; in scard_transmit() local
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dpcsc_funcs.c404 int rlen, rec; in scard_get_aid() local
427 rlen = scard_get_record_len(scard, rec, in scard_get_aid()
429 if (rlen < 0) { in scard_get_aid()
435 if (rlen > (int) blen) { in scard_get_aid()
439 if (scard_read_record(scard, buf, rlen, rec, in scard_get_aid()
445 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR record", buf, rlen); in scard_get_aid()
454 if (efdir->appl_template_len > rlen - 2) { in scard_get_aid()
457 efdir->appl_template_len, rlen); in scard_get_aid()
781 uint32_t rlen; in scard_transmit() local
783 unsigned long rlen; in scard_transmit() local
[all …]
/third_party/libunwind/src/ia64/
Dunwind_decoder.h186 unw_word rlen; in unw_decode_r1() local
188 rlen = (code & 0x1f); in unw_decode_r1()
189 UNW_DEC_PROLOGUE(R1, body, rlen, arg); in unw_decode_r1()
197 unw_word rlen; in unw_decode_r2() local
203 rlen = unw_decode_uleb128 (&dp); in unw_decode_r2()
204 UNW_DEC_PROLOGUE_GR(R2, rlen, mask, grsave, arg); in unw_decode_r2()
211 unw_word rlen; in unw_decode_r3() local
213 rlen = unw_decode_uleb128 (&dp); in unw_decode_r3()
214 UNW_DEC_PROLOGUE(R3, ((code & 0x3) == 1), rlen, arg); in unw_decode_r3()
/third_party/uboot/u-boot-2020.01/drivers/core/
Dof_addr.c174 int rlen; in of_translate_one() local
194 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one()
199 if (ranges == NULL || rlen == 0) { in of_translate_one()
209 rlen /= 4; in of_translate_one()
211 for (; rlen >= rone; rlen -= rone, ranges += rone) { in of_translate_one()

12345