Home
last modified time | relevance | path

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

123456789

/external/syslinux/core/lwip/src/core/snmp/
Dasn1_enc.c183 u16_t plen, base; in snmp_asn1_enc_type() local
186 plen = 0; in snmp_asn1_enc_type()
189 base = plen; in snmp_asn1_enc_type()
190 plen += p->len; in snmp_asn1_enc_type()
191 if (ofs < plen) in snmp_asn1_enc_type()
215 u16_t plen, base; in snmp_asn1_enc_length() local
218 plen = 0; in snmp_asn1_enc_length()
221 base = plen; in snmp_asn1_enc_length()
222 plen += p->len; in snmp_asn1_enc_length()
223 if (ofs < plen) in snmp_asn1_enc_length()
[all …]
Dasn1_dec.c54 u16_t plen, base; in snmp_asn1_dec_type() local
57 plen = 0; in snmp_asn1_dec_type()
60 base = plen; in snmp_asn1_dec_type()
61 plen += p->len; in snmp_asn1_dec_type()
62 if (ofs < plen) in snmp_asn1_dec_type()
87 u16_t plen, base; in snmp_asn1_dec_length() local
90 plen = 0; in snmp_asn1_dec_length()
93 base = plen; in snmp_asn1_dec_length()
94 plen += p->len; in snmp_asn1_dec_length()
95 if (ofs < plen) in snmp_asn1_dec_length()
[all …]
/external/strace/tests-m32/
Dsockname.c76 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
77 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
78 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
82 plen SUFFIX_ARGS); in test_sockname_syscall()
88 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
93 plen SUFFIX_ARGS); in test_sockname_syscall()
99 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
115 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
118 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
121 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
/external/strace/tests/
Dsockname.c76 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
77 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
78 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
82 plen SUFFIX_ARGS); in test_sockname_syscall()
88 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
93 plen SUFFIX_ARGS); in test_sockname_syscall()
99 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
115 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
118 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
121 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
/external/strace/tests-mx32/
Dsockname.c76 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
77 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
78 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
82 plen SUFFIX_ARGS); in test_sockname_syscall()
88 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
93 plen SUFFIX_ARGS); in test_sockname_syscall()
99 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
115 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
118 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
121 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
/external/syslinux/com32/elflink/ldlinux/
Dsetadv.c69 size_t plen = p[1] + 2; in syslinux_setadv() local
77 if (plen >= rleft) { in syslinux_setadv()
81 memmove(p, p + plen, rleft - plen); in syslinux_setadv()
82 rleft -= plen; /* Fewer bytes to read, but not to write */ in syslinux_setadv()
85 if (plen > rleft) in syslinux_setadv()
88 left -= plen; in syslinux_setadv()
89 rleft -= plen; in syslinux_setadv()
90 p += plen; in syslinux_setadv()
Dgetadv.c49 size_t plen = *p++; in syslinux_getadv() local
55 if (left < plen) in syslinux_getadv()
59 *size = plen; in syslinux_getadv()
63 p += plen; in syslinux_getadv()
64 left -= plen; in syslinux_getadv()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c356 size_t plen; in tlsv1_record_receive() local
362 plen = in_len; in tlsv1_record_receive()
364 "data", out_data, plen); in tlsv1_record_receive()
380 if (plen < rl->iv_size) { in tlsv1_record_receive()
387 plen - rl->iv_size); in tlsv1_record_receive()
388 plen -= rl->iv_size; in tlsv1_record_receive()
392 if (plen == 0) { in tlsv1_record_receive()
398 padlen = out_data[plen - 1]; in tlsv1_record_receive()
399 if (padlen >= plen) { in tlsv1_record_receive()
403 padlen, (unsigned long) plen); in tlsv1_record_receive()
[all …]
/external/tcpdump/
Dprint-bgp.c534 u_int plen, plenbytes; in decode_prefix4() local
538 plen = pptr[0]; in decode_prefix4()
539 if (32 < plen) in decode_prefix4()
544 plenbytes = (plen + 7) / 8; in decode_prefix4()
548 if (plen % 8) { in decode_prefix4()
550 ((0xff00 >> (plen % 8)) & 0xff); in decode_prefix4()
552 snprintf(buf, buflen, "%s/%d", ipaddr_string(ndo, &addr), plen); in decode_prefix4()
567 u_int plen, plenbytes; in decode_labeled_prefix4() local
572 plen = pptr[0]; /* get prefix length */ in decode_labeled_prefix4()
582 if (24 > plen) in decode_labeled_prefix4()
[all …]
Dprint-babel.c124 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen) in format_prefix() argument
127 if(plen >= 96 && memcmp(prefix, v4prefix, 12) == 0) in format_prefix()
128 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96); in format_prefix()
130 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen); in format_prefix()
172 network_prefix(int ae, int plen, unsigned int omitted, in network_prefix() argument
180 if(plen >= 0) in network_prefix()
181 pb = (plen + 7) / 8; in network_prefix()
492 u_char plen; in babel_print_v2() local
497 plen = message[4] + (message[2] == 1 ? 96 : 0); in babel_print_v2()
510 format_prefix(ndo, prefix, plen), in babel_print_v2()
[all …]
Dsignature.c118 signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, in signature_verify() argument
133 if (!ND_TTEST2(pptr, plen)) { in signature_verify()
145 if (sig_ptr + sizeof(sig) > pptr + plen) { in signature_verify()
153 packet_copy = malloc(plen); in signature_verify()
158 memcpy(packet_copy, pptr, plen); in signature_verify()
175 signature_compute_hmac_md5(packet_copy, plen, in signature_verify()
202 u_int plen _U_, const u_char *sig_ptr _U_, in signature_verify()
/external/openssh/
Dsshbuf-misc.c95 size_t len = sshbuf_len(buf), plen; in sshbuf_dtob64() local
102 plen = ((len + 2) / 3) * 4 + 1; in sshbuf_dtob64()
103 if (SIZE_MAX / 2 <= len || (ret = malloc(plen)) == NULL) in sshbuf_dtob64()
105 if ((r = b64_ntop(p, len, ret, plen)) == -1) { in sshbuf_dtob64()
106 explicit_bzero(ret, plen); in sshbuf_dtob64()
116 size_t plen = strlen(b64); in sshbuf_b64tod() local
120 if (plen == 0) in sshbuf_b64tod()
122 if ((p = malloc(plen)) == NULL) in sshbuf_b64tod()
124 if ((nlen = b64_pton(b64, p, plen)) < 0) { in sshbuf_b64tod()
125 explicit_bzero(p, plen); in sshbuf_b64tod()
[all …]
/external/syslinux/com32/lib/
Ddhcppack.c21 size_t xlen, plen; in dhcp_pack_field_zero() local
51 *q++ = plen = xlen > 255 ? 255 : xlen; in dhcp_pack_field_zero()
52 if (plen) in dhcp_pack_field_zero()
53 memcpy(q, p, plen); in dhcp_pack_field_zero()
54 q += plen; in dhcp_pack_field_zero()
55 p += plen; in dhcp_pack_field_zero()
56 spc -= plen+2; in dhcp_pack_field_zero()
57 xlen -= plen; in dhcp_pack_field_zero()
/external/syslinux/libinstaller/
Dsetadv.c81 size_t plen = p[1] + 2; in syslinux_setadv() local
89 if (plen >= left) { in syslinux_setadv()
93 memmove(p, p + plen, left - plen); in syslinux_setadv()
96 if (plen > left) in syslinux_setadv()
99 left -= plen; in syslinux_setadv()
100 p += plen; in syslinux_setadv()
/external/boringssl/src/crypto/asn1/
Dtasn_dec.c74 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen);
715 long plen; in asn1_d2i_ex_primitive() local
759 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive()
786 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive()
790 len = p - cont + plen; in asn1_d2i_ex_primitive()
791 p += plen; in asn1_d2i_ex_primitive()
810 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) { in asn1_d2i_ex_primitive()
823 len = plen; in asn1_d2i_ex_primitive()
824 p += plen; in asn1_d2i_ex_primitive()
988 long plen; in asn1_find_end() local
[all …]
/external/e2fsprogs/lib/ext2fs/
Dfallocate.c107 blk64_t fillable, pblk, plen, x, y; in ext_falloc_helper() local
288 &pblk, &plen); in ext_falloc_helper()
291 if (pblk + plen != right_ext->e_pblk) in ext_falloc_helper()
293 err = claim_range(fs, inode, pblk, plen); in ext_falloc_helper()
379 x, fillable, NULL, &pblk, &plen); in ext_falloc_helper()
382 err = claim_range(fs, inode, pblk, plen); in ext_falloc_helper()
390 range_start += plen; in ext_falloc_helper()
391 range_len -= plen; in ext_falloc_helper()
392 left_ext->e_len += plen; in ext_falloc_helper()
404 err = ext2fs_zero_blocks2(fs, pblk, plen, NULL, NULL); in ext_falloc_helper()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dsha384-prf.c56 size_t pos, plen; in sha384_prf_bits() local
75 plen = buf_len - pos; in sha384_prf_bits()
77 if (plen >= SHA384_MAC_LEN) { in sha384_prf_bits()
83 os_memcpy(&buf[pos], hash, plen); in sha384_prf_bits()
84 pos += plen; in sha384_prf_bits()
Dsha256-prf.c59 size_t pos, plen; in sha256_prf_bits() local
78 plen = buf_len - pos; in sha256_prf_bits()
80 if (plen >= SHA256_MAC_LEN) { in sha256_prf_bits()
89 os_memcpy(&buf[pos], hash, plen); in sha256_prf_bits()
90 pos += plen; in sha256_prf_bits()
Dsha1-pbkdf2.c77 size_t left = buflen, plen; in pbkdf2_sha1() local
85 plen = left > SHA1_MAC_LEN ? SHA1_MAC_LEN : left; in pbkdf2_sha1()
86 os_memcpy(pos, digest, plen); in pbkdf2_sha1()
87 pos += plen; in pbkdf2_sha1()
88 left -= plen; in pbkdf2_sha1()
/external/curl/lib/vauth/
Dcleartext.c68 size_t plen; in Curl_auth_create_plain_message() local
74 plen = strlen(passwdp); in Curl_auth_create_plain_message()
80 plainlen += plen; in Curl_auth_create_plain_message()
81 if(plainlen < plen) in Curl_auth_create_plain_message()
96 memcpy(plainauth + 2 * ulen + 2, passwdp, plen); in Curl_auth_create_plain_message()
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
DNETEQTEST_DummyRTPpacket.cc30 uint16_t length, plen; in readFromFile() local
44 if (fread(&plen, 2, 1, fp) == 0) in readFromFile()
49 packetLen = ntohs(plen); in readFromFile()
150 uint16_t length, plen; in writeToFile() local
161 plen = htons(_datagramLen); in writeToFile()
162 if (fwrite(&plen, 2, 1, fp) != 1) in writeToFile()
/external/ppp/pppd/plugins/rp-pppoe/
Ddiscovery.c269 UINT16_t plen; in sendPADI() local
289 plen = TAG_HDR_SIZE + namelen; in sendPADI()
290 CHECK_ROOM(cursor, packet.payload, plen); in sendPADI()
300 plen = 0; in sendPADI()
313 plen += sizeof(pid) + TAG_HDR_SIZE; in sendPADI()
326 plen += sizeof(mru) + TAG_HDR_SIZE; in sendPADI()
329 packet.length = htons(plen); in sendPADI()
331 sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); in sendPADI()
457 UINT16_t plen; in sendPADR() local
462 plen = TAG_HDR_SIZE + namelen; in sendPADR()
[all …]
/external/libxml2/
Ddict.c75 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
79 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed) : \
80 xmlDictComputeBigQKey(prefix, plen, name, len, (dict)->seed)))
85 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
86 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed)
305 xmlDictAddQString(xmlDictPtr dict, const xmlChar *prefix, unsigned int plen, in xmlDictAddQString() argument
320 if ((size_t)(pool->end - pool->free) > namelen + plen + 1) in xmlDictAddQString()
336 if (size < 4 * (namelen + plen + 1)) in xmlDictAddQString()
337 size = 4 * (namelen + plen + 1); /* just in case ! */ in xmlDictAddQString()
353 memcpy(pool->free, prefix, plen); in xmlDictAddQString()
[all …]
/external/toybox/lib/
Ddirtree.c75 char *dirtree_path(struct dirtree *node, int *plen) in dirtree_path() argument
81 path = xmalloc(*plen); in dirtree_path()
82 *plen = 0; in dirtree_path()
86 len = (plen ? *plen : 0)+strlen(node->name)+1; in dirtree_path()
90 if (plen) *plen = len; in dirtree_path()
/external/webrtc/webrtc/modules/audio_coding/test/
DRTPFile.cc177 uint16_t plen = htons(static_cast<u_short>(12 + payloadSize)); in Write() local
183 EXPECT_EQ(1u, fwrite(&plen, 2, 1, _rtpFile)); in Write()
192 uint16_t plen; in Read() local
200 EXPECT_EQ(1u, fread(&plen, 2, 1, _rtpFile)); in Read()
203 plen = ntohs(plen); in Read()
205 EXPECT_GT(plen, 11); in Read()
211 EXPECT_EQ(lengthBytes, plen + 8); in Read()
213 if (plen == 0) { in Read()

123456789