Home
last modified time | relevance | path

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

1234567891011

/external/strace/tests-m32/
Dsockname.c78 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
84 plen SUFFIX_ARGS); in test_sockname_syscall()
90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
95 plen SUFFIX_ARGS); in test_sockname_syscall()
101 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
117 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
120 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
123 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond() local
129 plen, buf, plen, in test_inet_diag_bc_s_cond()
131 print_quoted_hex(buf + sizeof(op), plen - sizeof(op)); in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr() local
182 plen, buf, plen, in test_in_addr()
186 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr() local
233 plen, buf, plen, in test_in6_addr()
237 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le() local
[all …]
Dtest_nlattr.h121 const unsigned int plen = \
125 if (plen > 0) \
129 plen, (pattern_), plen, \
130 (fallback_func)((pattern_), plen)); \
171 const unsigned int plen = \
178 plen, (pattern_), plen, \
179 print_quoted_hex((pattern_), plen)); \
229 const unsigned int plen = \
233 if (plen > 0) \
238 plen, (pattern_), plen, \
[all …]
/external/strace/tests/
Dsockname.c78 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
84 plen SUFFIX_ARGS); in test_sockname_syscall()
90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
95 plen SUFFIX_ARGS); in test_sockname_syscall()
101 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
117 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
120 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
123 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond() local
129 plen, buf, plen, in test_inet_diag_bc_s_cond()
131 print_quoted_hex(buf + sizeof(op), plen - sizeof(op)); in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr() local
182 plen, buf, plen, in test_in_addr()
186 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr() local
233 plen, buf, plen, in test_in6_addr()
237 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le() local
[all …]
Dtest_nlattr.h121 const unsigned int plen = \
125 if (plen > 0) \
129 plen, (pattern_), plen, \
130 (fallback_func)((pattern_), plen)); \
171 const unsigned int plen = \
178 plen, (pattern_), plen, \
179 print_quoted_hex((pattern_), plen)); \
229 const unsigned int plen = \
233 if (plen > 0) \
238 plen, (pattern_), plen, \
[all …]
/external/strace/tests-mx32/
Dsockname.c78 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, plen); in test_sockname_syscall()
79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall()
80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall()
84 plen SUFFIX_ARGS); in test_sockname_syscall()
90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
95 plen SUFFIX_ARGS); in test_sockname_syscall()
101 (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall()
117 plen + 1 SUFFIX_ARGS); in test_sockname_syscall()
120 plen + 1, SUFFIX_STR, sprintrc(rc)); in test_sockname_syscall()
123 *plen = offsetof_sun_path; in test_sockname_syscall()
[all …]
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond() local
129 plen, buf, plen, in test_inet_diag_bc_s_cond()
131 print_quoted_hex(buf + sizeof(op), plen - sizeof(op)); in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr() local
182 plen, buf, plen, in test_in_addr()
186 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr() local
233 plen, buf, plen, in test_in6_addr()
237 print_quoted_hex(pattern, plen - sizeof(op) - sizeof(cond)); in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le() local
[all …]
Dtest_nlattr.h121 const unsigned int plen = \
125 if (plen > 0) \
129 plen, (pattern_), plen, \
130 (fallback_func)((pattern_), plen)); \
171 const unsigned int plen = \
178 plen, (pattern_), plen, \
179 print_quoted_hex((pattern_), plen)); \
229 const unsigned int plen = \
233 if (plen > 0) \
238 plen, (pattern_), plen, \
[all …]
/external/libpcap/rpcapd/
Ddaemon.c109 static int daemon_msg_err(SOCKET sockctrl_in, uint32 plen);
110 static int daemon_msg_auth_req(struct daemon_slpars *pars, uint32 plen);
113 static int daemon_msg_findallif_req(struct daemon_slpars *pars, uint32 plen);
115 static int daemon_msg_open_req(struct daemon_slpars *pars, uint32 plen, char *source, size_t source…
116 static int daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, struct thread_handle *t…
119 … int daemon_msg_updatefilter_req(struct daemon_slpars *pars, struct session *session, uint32 plen);
122 static int daemon_msg_stats_req(struct daemon_slpars *pars, struct session *session, uint32 plen, s…
124 static int daemon_msg_setsampling_req(struct daemon_slpars *pars, uint32 plen, struct rpcap_samplin…
134 static int rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf);
145 uint32 plen; // payload length from header in daemon_serviceloop() local
[all …]
/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/scapy/scapy/
Droute6.py68 prefix, plen = (dst.split("/")+["128"])[:2]
69 plen = int(plen)
80 ifaddr = construct_source_candidate_set(prefix, plen, devaddrs)
82 return (prefix, plen, gw, dev, ifaddr, 1)
102 dst, plen = tmp.split('/')[:2]
104 plen = int(plen)
105 l = [x for x in self.routes if in6_ptop(x[0]) == dst and x[1] == plen]
127 net, plen, gw, iface, addr, metric = route
133 self.routes[i] = (net,plen,gw,iface,[the_addr],metric)
160 addr, plen = (addr.split("/")+["128"])[:2]
[all …]
/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/boringssl/src/crypto/asn1/
Dtasn_dec.c83 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen);
736 long plen; in asn1_d2i_ex_primitive() local
780 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive()
807 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive()
811 len = p - cont + plen; in asn1_d2i_ex_primitive()
812 p += plen; in asn1_d2i_ex_primitive()
831 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) { in asn1_d2i_ex_primitive()
844 len = plen; in asn1_d2i_ex_primitive()
845 p += plen; in asn1_d2i_ex_primitive()
1009 long plen; in asn1_find_end() local
[all …]
/external/libpcap/
Dpcap-rpcap.c163 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf);
164 static void rpcap_msg_err(SOCKET sockctrl, uint32 plen, char *remote_errbuf);
378 uint32 plen; in pcap_read_nocb_remote() local
452 plen = ntohl(header->plen); in pcap_read_nocb_remote()
453 if ((size_t)msglen < sizeof(struct rpcap_header) + plen) in pcap_read_nocb_remote()
495 plen = ntohl(header->plen); in pcap_read_nocb_remote()
496 if (plen > p->bufsize - sizeof(struct rpcap_header)) in pcap_read_nocb_remote()
509 sizeof(struct rpcap_header) + plen); in pcap_read_nocb_remote()
533 header->plen = plen; in pcap_read_nocb_remote()
552 if (ntohl(net_pkt_header->caplen) > plen) in pcap_read_nocb_remote()
[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/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/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()
77 if((ulen > SIZE_T_MAX/4) || (plen > (SIZE_T_MAX/2 - 2))) in Curl_auth_create_plain_message()
79 plainlen = 2 * ulen + plen + 2; in Curl_auth_create_plain_message()
90 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/wpa_supplicant_8/src/crypto/
Dsha384-prf.c59 size_t pos, plen; in sha384_prf_bits() local
78 plen = buf_len - pos; in sha384_prf_bits()
80 if (plen >= SHA384_MAC_LEN) { in sha384_prf_bits()
89 os_memcpy(&buf[pos], hash, plen); in sha384_prf_bits()
90 pos += plen; in sha384_prf_bits()
Dsha512-prf.c59 size_t pos, plen; in sha512_prf_bits() local
78 plen = buf_len - pos; in sha512_prf_bits()
80 if (plen >= SHA512_MAC_LEN) { in sha512_prf_bits()
89 os_memcpy(&buf[pos], hash, plen); in sha512_prf_bits()
90 pos += plen; in sha512_prf_bits()

1234567891011