Home
last modified time | relevance | path

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

12345678910>>...13

/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-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-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/tcpdump/
Dprint-bgp.c588 u_int plen, plenbytes; in decode_prefix4() local
591 plen = GET_U_1(pptr); in decode_prefix4()
592 if (32 < plen) in decode_prefix4()
597 plenbytes = (plen + 7) / 8; in decode_prefix4()
600 if (plen % 8) { in decode_prefix4()
601 ((u_char *)&addr)[plenbytes - 1] &= ((0xff00 >> (plen % 8)) & 0xff); in decode_prefix4()
603 snprintf(buf, buflen, "%s/%u", ipaddr_string(ndo, (const u_char *)&addr), plen); in decode_prefix4()
616 u_int plen, plenbytes; in decode_labeled_prefix4() local
621 plen = GET_U_1(pptr); /* get prefix length */ in decode_labeled_prefix4()
631 if (24 > plen) in decode_labeled_prefix4()
[all …]
Dprint-babel.c143 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen) in format_prefix() argument
152 if(plen >= 96 && memcmp(prefix, v4prefix, 12) == 0) in format_prefix()
153 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96); in format_prefix()
155 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen); in format_prefix()
202 network_prefix(int ae, int plen, unsigned int omitted, in network_prefix() argument
210 if(plen >= 0) in network_prefix()
211 pb = (plen + 7) / 8; in network_prefix()
538 u_char ae, plen; in babel_print_v2_tlvs() local
544 plen = GET_U_1(message + 4) + (GET_U_1(message + 2) == 1 ? 96 : 0); in babel_print_v2_tlvs()
559 ae == 0 ? "any" : format_prefix(ndo, prefix, plen), in babel_print_v2_tlvs()
[all …]
Dsignature.c119 signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, in signature_verify() argument
134 if (!ND_TTEST_LEN(pptr, plen)) { in signature_verify()
146 if (sig_ptr + sizeof(sig) > pptr + plen) { in signature_verify()
154 packet_copy = malloc(plen); in signature_verify()
159 memcpy(packet_copy, pptr, plen); in signature_verify()
176 signature_compute_hmac_md5(packet_copy, plen, in signature_verify()
203 u_int plen _U_, const u_char *sig_ptr _U_, in signature_verify()
/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/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/libpcap/rpcapd/
Ddaemon.c128 static int daemon_msg_err(SOCKET sockctrl, SSL *, uint32 plen);
129 static int daemon_msg_auth_req(struct daemon_slpars *pars, uint32 plen);
133 uint32 plen);
136 uint32 plen, char *source, size_t sourcelen);
138 uint32 plen, char *source, struct session **sessionp,
144 struct session *session, uint32 plen);
148 struct session *session, uint32 plen, struct pcap_stat *stats,
152 uint32 plen, struct rpcap_sampling *samp_param);
163 static int rpcapd_recv(SOCKET sock, SSL *, char *buffer, size_t toread, uint32 *plen, char *errmsgb…
227 uint32 plen; // payload length from header in daemon_serviceloop() local
[all …]
/external/iptables/iptables/tests/shell/testcases/nft-only/
D0009-needless-bitwise_010 for plen in "" 32 30 24 16 8 0; do
11 addr="10.1.2.3${plen:+/}$plen"
19 for plen in "" 128 124 120 112 88 80 64 48 16 8 0; do
20 addr="feed:c0ff:ee00:0102:0304:0506:0708:090A${plen:+/}$plen"
37 for plen in "" 32 30 24 16 8 0; do
38 addr="10.1.2.3${plen:+/}$plen"
/external/libpcap/
Dpcap-rpcap.c179 static int rpcap_recv(SOCKET sock, SSL *, void *buffer, size_t toread, uint32 *plen, char *errbuf);
180 static void rpcap_msg_err(SOCKET sockctrl, SSL *, uint32 plen, char *remote_errbuf);
394 uint32 plen; in pcap_read_nocb_remote() local
482 plen = ntohl(header->plen); in pcap_read_nocb_remote()
483 if ((size_t)msglen < sizeof(struct rpcap_header) + plen) in pcap_read_nocb_remote()
524 plen = ntohl(header->plen); in pcap_read_nocb_remote()
525 if (plen > p->bufsize - sizeof(struct rpcap_header)) in pcap_read_nocb_remote()
537 status = rpcap_read_packet_msg(pr, p, sizeof(struct rpcap_header) + plen); in pcap_read_nocb_remote()
561 header->plen = plen; in pcap_read_nocb_remote()
580 if (ntohl(net_pkt_header->caplen) > plen) in pcap_read_nocb_remote()
[all …]
/external/libwebsockets/lib/tls/
Dtls-network.c234 uint8_t *oos = os, *plen = NULL; in lws_alpn_comma_to_openssl() local
240 if (!plen && *comma == ' ') { in lws_alpn_comma_to_openssl()
244 if (!plen) { in lws_alpn_comma_to_openssl()
245 plen = os++; in lws_alpn_comma_to_openssl()
250 *plen = (uint8_t)lws_ptr_diff(os, plen + 1); in lws_alpn_comma_to_openssl()
251 plen = NULL; in lws_alpn_comma_to_openssl()
259 if (plen) in lws_alpn_comma_to_openssl()
260 *plen = (uint8_t)lws_ptr_diff(os, plen + 1); in lws_alpn_comma_to_openssl()
/external/rust/crates/quiche/deps/boringssl/src/crypto/asn1/
Dtasn_dec.c84 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen);
687 long plen; in asn1_d2i_ex_primitive() local
731 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive()
758 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive()
762 len = p - cont + plen; in asn1_d2i_ex_primitive()
763 p += plen; in asn1_d2i_ex_primitive()
782 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) { in asn1_d2i_ex_primitive()
795 len = plen; in asn1_d2i_ex_primitive()
796 p += plen; in asn1_d2i_ex_primitive()
960 long plen; in asn1_find_end() local
[all …]
/external/mesa3d/src/freedreno/rnn/
Dpath.c33 size_t plen; in find_in_path() local
35 plen = npath - path; in find_in_path()
38 plen = strlen(path); in find_in_path()
40 if (plen) { in find_in_path()
46 int ret = asprintf(&fullname, "%.*s/%s%s", (int)plen, path, name, exts[i]); in find_in_path()
/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/curl/lib/vauth/
Dcleartext.c72 size_t plen; in Curl_auth_create_plain_message() local
76 plen = strlen(passwd); in Curl_auth_create_plain_message()
80 (plen > (SIZE_T_MAX/2 - 2))) in Curl_auth_create_plain_message()
82 plainlen = zlen + clen + plen + 2; in Curl_auth_create_plain_message()
94 memcpy(plainauth + zlen + clen + 2, passwd, plen); in Curl_auth_create_plain_message()
/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.c74 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
78 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed) : \
79 xmlDictComputeBigQKey(prefix, plen, name, len, (dict)->seed)))
84 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
85 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed)
286 xmlDictAddQString(xmlDictPtr dict, const xmlChar *prefix, unsigned int plen, in xmlDictAddQString() argument
301 if ((size_t)(pool->end - pool->free) > namelen + plen + 1) in xmlDictAddQString()
317 if (size < 4 * (namelen + plen + 1)) in xmlDictAddQString()
318 size = 4 * (namelen + plen + 1); /* just in case ! */ in xmlDictAddQString()
334 memcpy(pool->free, prefix, plen); in xmlDictAddQString()
[all …]
/external/cronet/third_party/libxml/src/
Ddict.c74 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
78 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed) : \
79 xmlDictComputeBigQKey(prefix, plen, name, len, (dict)->seed)))
84 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
85 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed)
286 xmlDictAddQString(xmlDictPtr dict, const xmlChar *prefix, unsigned int plen, in xmlDictAddQString() argument
301 if ((size_t)(pool->end - pool->free) > namelen + plen + 1) in xmlDictAddQString()
317 if (size < 4 * (namelen + plen + 1)) in xmlDictAddQString()
318 size = 4 * (namelen + plen + 1); /* just in case ! */ in xmlDictAddQString()
334 memcpy(pool->free, prefix, plen); in xmlDictAddQString()
[all …]

12345678910>>...13