/external/nanopb-c/tests/fuzztest/ |
D | fuzztest.c | 176 static bool do_static_encode(uint8_t *buffer, size_t *msglen) in do_static_encode() argument 194 *msglen = stream.bytes_written; in do_static_encode() 202 static void do_protobuf_noise(uint8_t *buffer, size_t *msglen) in do_protobuf_noise() argument 205 size_t max_size = BUFSIZE - 32 - *msglen; in do_protobuf_noise() 210 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise() 211 memmove(buffer + s, buffer, *msglen); in do_protobuf_noise() 214 *msglen += s; in do_protobuf_noise() 219 size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise() 220 *msglen += s; in do_protobuf_noise() 224 static bool do_static_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_static_decode() argument [all …]
|
D | fuzzstub.c | 19 static bool do_static_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_static_decode() argument 25 stream = pb_istream_from_buffer(buffer, msglen); in do_static_decode() 42 static bool do_pointer_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_pointer_decode() argument 50 stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_decode() 67 static void do_static_roundtrip(uint8_t *buffer, size_t msglen) in do_static_roundtrip() argument 79 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip() 114 static void do_pointer_roundtrip(uint8_t *buffer, size_t msglen) in do_pointer_roundtrip() argument 126 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip() 165 size_t msglen; in run_iteration() local 168 msglen = fread(buffer, 1, BUFSIZE, stdin); in run_iteration() [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/ |
D | fuzztest.c | 176 static bool do_static_encode(uint8_t *buffer, size_t *msglen) in do_static_encode() argument 194 *msglen = stream.bytes_written; in do_static_encode() 202 static void do_protobuf_noise(uint8_t *buffer, size_t *msglen) in do_protobuf_noise() argument 205 size_t max_size = BUFSIZE - 32 - *msglen; in do_protobuf_noise() 210 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise() 211 memmove(buffer + s, buffer, *msglen); in do_protobuf_noise() 214 *msglen += s; in do_protobuf_noise() 219 size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise() 220 *msglen += s; in do_protobuf_noise() 224 static bool do_static_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_static_decode() argument [all …]
|
D | fuzzstub.c | 19 static bool do_static_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_static_decode() argument 25 stream = pb_istream_from_buffer(buffer, msglen); in do_static_decode() 42 static bool do_pointer_decode(uint8_t *buffer, size_t msglen, bool assert_success) in do_pointer_decode() argument 50 stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_decode() 67 static void do_static_roundtrip(uint8_t *buffer, size_t msglen) in do_static_roundtrip() argument 79 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip() 114 static void do_pointer_roundtrip(uint8_t *buffer, size_t msglen) in do_pointer_roundtrip() argument 126 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip() 165 size_t msglen; in run_iteration() local 168 msglen = fread(buffer, 1, BUFSIZE, stdin); in run_iteration() [all …]
|
/external/nanopb-c/tests/io_errors/ |
D | io_errors.c | 49 size_t msglen; in main() local 54 msglen = fread(buffer, 1, sizeof(buffer), stdin); in main() 63 for (i = 0; i < msglen; i++) in main() 65 stream.bytes_left = msglen; in main() 83 stream.bytes_left = msglen; in main() 86 fs.fail_after = msglen; in main() 103 for (i = 0; i < msglen; i++) in main() 105 stream.max_size = msglen; in main() 124 stream.max_size = msglen; in main() 128 fs.fail_after = msglen; in main()
|
/external/grpc-grpc/third_party/nanopb/tests/io_errors/ |
D | io_errors.c | 49 size_t msglen; in main() local 54 msglen = fread(buffer, 1, sizeof(buffer), stdin); in main() 63 for (i = 0; i < msglen; i++) in main() 65 stream.bytes_left = msglen; in main() 83 stream.bytes_left = msglen; in main() 86 fs.fail_after = msglen; in main() 103 for (i = 0; i < msglen; i++) in main() 105 stream.max_size = msglen; in main() 124 stream.max_size = msglen; in main() 128 fs.fail_after = msglen; in main()
|
/external/ppp/pppd/ |
D | upap.c | 382 int msglen; local 442 msglen = strlen(msg); 443 if (msglen > 255) 444 msglen = 255; 445 upap_sresp(u, retcode, id, msg, msglen); 475 u_char msglen; local 487 GETCHAR(msglen, inp); 488 if (msglen > 0) { 490 if (len < msglen) { 495 PRINTMSG(msg, msglen); [all …]
|
D | eap.c | 1050 int msglen; local 1059 msglen = EAP_HEADERLEN + sizeof (u_char) + lenstr; 1060 PUTSHORT(msglen, outp); 1066 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); 1081 int msglen; local 1090 msglen = EAP_HEADERLEN + 2 * sizeof (u_char) + MD5_SIGNATURE_SIZE + 1092 PUTSHORT(msglen, outp); 1101 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); 1117 int msglen; local 1126 msglen = EAP_HEADERLEN + 2 * sizeof (u_char) + lenstr; [all …]
|
/external/libpcap/ |
D | fmtutils.c | 65 size_t msglen; in pcap_fmt_errmsg_for_errno() local 77 msglen = strlen(errbuf); in pcap_fmt_errmsg_for_errno() 83 if (msglen + 3 > errbuflen) { in pcap_fmt_errmsg_for_errno() 87 p = errbuf + msglen; in pcap_fmt_errmsg_for_errno() 88 errbuflen_remaining = errbuflen - msglen; in pcap_fmt_errmsg_for_errno() 92 msglen += 2; in pcap_fmt_errmsg_for_errno()
|
D | sockutils.c | 439 size_t msglen; local 456 msglen = strlen(errbufptr); 458 errbufptr[msglen] = ' '; 459 errbufptr[msglen + 1] = 0; 461 bufspaceleft = bufspaceleft - (msglen + 1); 462 errbufptr += (msglen + 1);
|
D | pcap-libdlpi.c | 383 size_t msglen; in pcap_read_libdlpi() local 403 msglen = p->bufsize; in pcap_read_libdlpi() 407 &msglen, -1, NULL); in pcap_read_libdlpi() 422 len = msglen; in pcap_read_libdlpi()
|
/external/nanopb-c/tests/regression/issue_229/ |
D | multiple_oneof.c | 10 size_t msglen; in main() local 20 msglen = stream.bytes_written; in main() 24 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_recvmsg.c | 69 int error, msglen, i; in main() local 138 for (i = 0, msglen = 30000; i < 15; i++, msglen-=2000) { in main() 142 test_check_msg_data(&inmessage, error, msglen, in main()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-udpserver.c | 145 ssize_t msglen; /* the length of message */ in respond_to_client() local 168 if ((msglen = recvfrom(sock_fd, msgbuf, msgbuf_size, 0, in respond_to_client() 172 msgbuf[msglen] = '\0'; in respond_to_client() 178 if (sendto(sock_fd, msgbuf, msglen, 0, in respond_to_client() 180 sizeof(client_addr)) != msglen) in respond_to_client()
|
D | ns-mcast_receiver.c | 372 ssize_t msglen; /* the length of message */ in receive_mcast() local 408 msglen = recvfrom(sd, msgbuf, msgbuf_size, MSG_DONTWAIT, in receive_mcast() 410 if (msglen < 0) { in receive_mcast() 414 fprintf(stderr, "received %zd byte message\n", msglen); in receive_mcast()
|
/external/nanopb-c/tests/regression/issue_249/ |
D | test.c | 37 pb_size_t msglen; in main() local 44 msglen = stream.bytes_written; in main() 49 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/external/iproute2/testsuite/tools/ |
D | generate_nlmsg.c | 97 int msglen; in main() local 100 msglen = fill_vf_rate_test(buf, sizeof(buf)); in main() 101 if (msglen < 0) { in main() 110 if (fwrite(buf, msglen, 1, fp) != 1) { in main()
|
/external/pdfium/core/fdrm/crypto/ |
D | fx_crypt_sha.cpp | 484 uint8_t msglen[8]; in CRYPT_SHA256Finish() local 487 SHA_PUT_UINT32(high, msglen, 0); in CRYPT_SHA256Finish() 488 SHA_PUT_UINT32(low, msglen, 4); in CRYPT_SHA256Finish() 492 CRYPT_SHA256Update(ctx, msglen, 8); in CRYPT_SHA256Finish() 557 uint8_t msglen[16]; in CRYPT_SHA384Finish() local 558 memset(msglen, 0, 16); in CRYPT_SHA384Finish() 562 PUT_UINT64(high, msglen, 0); in CRYPT_SHA384Finish() 563 PUT_UINT64(low, msglen, 8); in CRYPT_SHA384Finish() 567 CRYPT_SHA384Update(ctx, msglen, 16); in CRYPT_SHA384Finish() 608 uint8_t msglen[16]; in CRYPT_SHA512Finish() local [all …]
|
/external/scapy/scapy/layers/tls/ |
D | basefields.py | 230 msglen = struct.unpack('!H', s[:2])[0] 231 pkt.with_padding = (msglen & 0x8000) == 0 233 msglen_clean = msglen & 0x3fff 235 msglen_clean = msglen & 0x7fff
|
D | handshake.py | 68 length_from=lambda pkt: pkt.msglen) ] 72 if self.msglen is None: 247 length_from=lambda pkt: (pkt.msglen - 328 length_from=lambda pkt: (pkt.msglen - 404 length_from=lambda pkt: (pkt.msglen - 457 length_from=lambda pkt: pkt.msglen - 4) ] 470 length_from=lambda pkt: pkt.msglen - 2) ] 671 length_from=lambda pkt: pkt.msglen), 673 length_from=lambda pkt: pkt.msglen - len(pkt.params)) ] 848 length_from=lambda pkt: pkt.msglen) ] [all …]
|
D | record_sslv2.py | 105 msglen = struct.unpack("!H", s[:2])[0] 106 if msglen & 0x8000: 108 msglen_clean = msglen & 0x7fff 111 msglen_clean = msglen & 0x3fff
|
D | record_tls13.py | 135 msglen = struct.unpack('!H', s[3:5])[0] 136 hdr, efrag, r = s[:5], s[5:5+msglen], s[msglen+5:]
|
/external/kernel-headers/original/uapi/scsi/ |
D | scsi_netlink.h | 48 uint16_t msglen; member 120 (hdr)->msglen = mlen; \
|
/external/ipsec-tools/src/libipsec/ |
D | policy_parse.y | 586 policy_parse(msg, msglen) in policy_parse() argument 588 int msglen; 619 ipsec_set_policy(msg, msglen) in ipsec_set_policy() argument 621 int msglen; 625 policy = policy_parse(msg, msglen);
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg02.c | 39 static const unsigned msglen = ARRAY_SIZE(msg) - 1; variable 78 R = sendto(sdw, msg, msglen, 0, (struct sockaddr*)&addr_r, addrlen_r); in verify_recvmsg()
|