/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/libpcap/ |
D | fmtutils.c | 273 size_t msglen; in pcap_fmt_errmsg_for_errno() local 280 msglen = strlen(errbuf); in pcap_fmt_errmsg_for_errno() 286 if (msglen + 3 > errbuflen) { in pcap_fmt_errmsg_for_errno() 290 p = errbuf + msglen; in pcap_fmt_errmsg_for_errno() 291 errbuflen_remaining = errbuflen - msglen; in pcap_fmt_errmsg_for_errno() 381 size_t msglen; in pcap_fmt_errmsg_for_win32_err() local 391 msglen = strlen(errbuf); in pcap_fmt_errmsg_for_win32_err() 397 if (msglen + 3 > errbuflen) { in pcap_fmt_errmsg_for_win32_err() 401 p = errbuf + msglen; in pcap_fmt_errmsg_for_win32_err() 402 errbuflen_remaining = errbuflen - msglen; in pcap_fmt_errmsg_for_win32_err() [all …]
|
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/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_initmsg_connect.c | 42 int sk1, sk2, sk3, msglen; in test_sctp() local 87 msglen = strlen(message) + 1; in test_sctp() 88 TEST(sctp_sendmsg(sk1, message, msglen, (struct sockaddr *)&lstn_addr, in test_sctp() 91 if (TST_RET != msglen) { in test_sctp() 95 buffer_rcv = malloc(msglen); in test_sctp() 96 TEST(recv(sk2, buffer_rcv, msglen, MSG_NOSIGNAL)); in test_sctp() 98 if (TST_RET != msglen || strncmp(buffer_rcv, message, msglen)) { in test_sctp()
|
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/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 …]
|
/external/openssh/ |
D | xmss_fast.h | 84 …gned long long *sig_msg_len, const unsigned char *msg,unsigned long long msglen, const xmss_params… 90 int xmss_sign_open(unsigned char *msg,unsigned long long *msglen, const unsigned char *sig_msg,unsi… 105 …ned long long *sig_msg_len, const unsigned char *msg, unsigned long long msglen, const xmssmt_para… 109 int xmssmt_sign_open(unsigned char *msg, unsigned long long *msglen, const unsigned char *sig_msg, …
|
D | xmss_fast.c | 551 …ned long long *sig_msg_len, const unsigned char *msg, unsigned long long msglen, const xmss_params… in xmss_sign() argument 599 h_msg(msg_h, msg, msglen, hash_key, 3*n, n); in xmss_sign() 654 memcpy(sig_msg, msg, msglen); in xmss_sign() 655 *sig_msg_len += msglen; in xmss_sign() 663 int xmss_sign_open(unsigned char *msg, unsigned long long *msglen, const unsigned char *sig_msg, un… in xmss_sign_open() argument 730 *msglen = sig_msg_len; in xmss_sign_open() 731 for (i = 0; i < *msglen; i++) in xmss_sign_open() 738 *msglen = sig_msg_len; in xmss_sign_open() 739 for (i = 0; i < *msglen; i++) in xmss_sign_open() 741 *msglen = -1; in xmss_sign_open() [all …]
|
/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/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/libwebsockets/minimal-examples/ws-server/minimal-ws-server-echo/ |
D | protocol_lws_minimal_server_echo.c | 35 uint32_t msglen; member 162 lws_frame_is_binary(wsi), pss->msglen, (int)len, in callback_minimal_server_echo() 163 (int)pss->msglen + (int)len); in callback_minimal_server_echo() 181 pss->msglen = 0; in callback_minimal_server_echo() 183 pss->msglen += len; in callback_minimal_server_echo()
|
/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/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/rust/crates/grpcio-sys/grpc/third_party/upb/upb/pb/ |
D | encoder.c | 90 uint32_t msglen; /* The length to varint-encode before this segment. */ member 210 top(e)->msglen += run_len; in accumulate() 253 e->segptr->msglen = 0; in start_delim() 262 size_t msglen; in end_delim() local 264 msglen = top(e)->msglen; in end_delim() 272 size_t lenbytes = upb_vencode64(s->msglen, buf); in end_delim() 284 top(e)->msglen += msglen + upb_varint_size(msglen); in end_delim()
|
/external/kernel-headers/original/uapi/scsi/ |
D | scsi_netlink.h | 33 __u16 msglen; member 105 (hdr)->msglen = mlen; \
|
/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 | 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
|
/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 | 27 static const unsigned msglen = ARRAY_SIZE(msg) - 1; variable 66 R = sendto(sdw, msg, msglen, 0, (struct sockaddr*)&addr_r, addrlen_r); in verify_recvmsg()
|