Home
last modified time | relevance | path

Searched refs:msg_len (Results 1 – 25 of 90) sorted by relevance

1234

/external/strace/tests-m32/
Dnlattr.c64 unsigned int msg_len; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
79 fd, msg_len, msg_len, sprintrc(rc)); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
84 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
85 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
[all …]
Dnlattr_unix_diag_msg.c41 init_unix_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_unix_diag_msg() argument
44 .nlmsg_len = msg_len, in init_unix_diag_msg()
58 print_unix_diag_msg(const unsigned int msg_len) in print_unix_diag_msg() argument
64 msg_len); in print_unix_diag_msg()
Dnlattr_netlink_diag_msg.c39 init_netlink_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_netlink_diag_msg() argument
42 .nlmsg_len = msg_len, in init_netlink_diag_msg()
57 print_netlink_diag_msg(const unsigned int msg_len) in print_netlink_diag_msg() argument
65 msg_len); in print_netlink_diag_msg()
Dtest_nlattr.h68 const unsigned int msg_len = \
71 (init_msg_)(nlh, msg_len); \
76 sprintrc(sendto((fd_), nlh, msg_len, \
80 (print_msg_)(msg_len); \
86 msg_len, errstr); \
Dnlattr_inet_diag_msg.c49 init_inet_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_inet_diag_msg() argument
52 .nlmsg_len = msg_len, in init_inet_diag_msg()
70 print_inet_diag_msg(const unsigned int msg_len) in print_inet_diag_msg() argument
81 msg_len, address, address); in print_inet_diag_msg()
/external/strace/tests-mx32/
Dnlattr.c64 unsigned int msg_len; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
79 fd, msg_len, msg_len, sprintrc(rc)); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
84 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
85 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
[all …]
Dnlattr_unix_diag_msg.c41 init_unix_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_unix_diag_msg() argument
44 .nlmsg_len = msg_len, in init_unix_diag_msg()
58 print_unix_diag_msg(const unsigned int msg_len) in print_unix_diag_msg() argument
64 msg_len); in print_unix_diag_msg()
Dnlattr_netlink_diag_msg.c39 init_netlink_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_netlink_diag_msg() argument
42 .nlmsg_len = msg_len, in init_netlink_diag_msg()
57 print_netlink_diag_msg(const unsigned int msg_len) in print_netlink_diag_msg() argument
65 msg_len); in print_netlink_diag_msg()
Dtest_nlattr.h68 const unsigned int msg_len = \
71 (init_msg_)(nlh, msg_len); \
76 sprintrc(sendto((fd_), nlh, msg_len, \
80 (print_msg_)(msg_len); \
86 msg_len, errstr); \
/external/strace/tests/
Dnlattr.c64 unsigned int msg_len; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
79 fd, msg_len, msg_len, sprintrc(rc)); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
84 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
85 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
[all …]
Dnlattr_unix_diag_msg.c41 init_unix_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_unix_diag_msg() argument
44 .nlmsg_len = msg_len, in init_unix_diag_msg()
58 print_unix_diag_msg(const unsigned int msg_len) in print_unix_diag_msg() argument
64 msg_len); in print_unix_diag_msg()
Dnlattr_netlink_diag_msg.c39 init_netlink_diag_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_netlink_diag_msg() argument
42 .nlmsg_len = msg_len, in init_netlink_diag_msg()
57 print_netlink_diag_msg(const unsigned int msg_len) in print_netlink_diag_msg() argument
65 msg_len); in print_netlink_diag_msg()
Dtest_nlattr.h68 const unsigned int msg_len = \
71 (init_msg_)(nlh, msg_len); \
76 sprintrc(sendto((fd_), nlh, msg_len, \
80 (print_msg_)(msg_len); \
86 msg_len, errstr); \
/external/boringssl/src/ssl/
Dd1_both.cc163 frag->msg_len = msg_hdr->msg_len; in dtls1_hm_fragment_new()
167 (uint8_t *)OPENSSL_malloc(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len); in dtls1_hm_fragment_new()
176 !CBB_add_u24(&cbb, msg_hdr->msg_len) || in dtls1_hm_fragment_new()
179 !CBB_add_u24(&cbb, msg_hdr->msg_len) || in dtls1_hm_fragment_new()
187 if (msg_hdr->msg_len > 0) { in dtls1_hm_fragment_new()
189 if (msg_hdr->msg_len + 7 < msg_hdr->msg_len) { in dtls1_hm_fragment_new()
193 size_t bitmask_len = (msg_hdr->msg_len + 7) / 8; in dtls1_hm_fragment_new()
221 size_t msg_len = frag->msg_len; in dtls1_hm_fragment_mark() local
223 if (frag->reassembly == NULL || start > end || end > msg_len) { in dtls1_hm_fragment_mark()
228 assert(msg_len > 0); in dtls1_hm_fragment_mark()
[all …]
/external/openssh/
Dmsg.c69 u_int msg_len; in ssh_msg_recv() local
79 msg_len = get_u32(buf); in ssh_msg_recv()
80 if (msg_len > 256 * 1024) { in ssh_msg_recv()
81 error("ssh_msg_recv: read: bad msg_len %u", msg_len); in ssh_msg_recv()
85 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0) { in ssh_msg_recv()
89 if (atomicio(read, fd, p, msg_len) != msg_len) { in ssh_msg_recv()
Dssh-pkcs11-helper.c213 u_int msg_len; in process() local
223 msg_len = get_u32(cp); in process()
224 if (msg_len > MAX_MSG_LENGTH) { in process()
225 error("bad message len %d", msg_len); in process()
228 if (buf_len < msg_len + 4) in process()
256 if (msg_len < consumed) { in process()
257 error("msg_len %d < consumed %d", msg_len, consumed); in process()
260 if (msg_len > consumed) in process()
261 buffer_consume(&iqueue, msg_len - consumed); in process()
/external/ltp/utils/sctp/func_tests/
Dtest_fragments.c93 int msg_len, msg_cnt, i; in main() local
160 msg_len = 10; in main()
163 outmessage.msg_iov->iov_len = msg_len; in main()
164 test_sendmsg(sk1, &outmessage, 0, msg_len); in main()
199 test_check_msg_data(&inmessage, error, msg_len, MSG_EOR, stream, ppid); in main()
225 msg_len = 100000; in main()
226 msg_buf = test_build_msg(msg_len); in main()
228 outmessage.msg_iov->iov_len = msg_len; in main()
248 msg_len = msg_sizes[i]; in main()
249 msg_buf = test_build_msg(msg_len); in main()
[all …]
/external/tcpdump/
Dprint-olsr.c94 uint8_t msg_len[2]; member
104 uint8_t msg_len[2]; member
323 u_int msg_type, msg_len, msg_tlen, hello_len; in olsr_print() local
368 msg_len = EXTRACT_16BITS(msgptr.v6->msg_len); in olsr_print()
369 if ((msg_len >= sizeof (struct olsr_msg6)) in olsr_print()
370 && (msg_len <= length)) in olsr_print()
374 if (msg_type == 0 || msg_len == 0) { in olsr_print()
386 msg_len, (msg_len_valid == 0) ? " (invalid)" : "")); in olsr_print()
391 msg_tlen = msg_len - sizeof(struct olsr_msg6); in olsr_print()
398 msg_len = EXTRACT_16BITS(msgptr.v4->msg_len); in olsr_print()
[all …]
Dprint-ldp.c567 u_short pdu_len,msg_len,msg_type,msg_tlen; in ldp_pdu_print() local
613 msg_len=EXTRACT_16BITS(ldp_msg_header->length); in ldp_pdu_print()
616 if (msg_len < sizeof(struct ldp_msg_header)-4) { in ldp_pdu_print()
624 msg_len, in ldp_pdu_print()
635 msg_len, in ldp_pdu_print()
640 msg_tlen=msg_len-(sizeof(struct ldp_msg_header)-4); /* Type & Length fields not included */ in ldp_pdu_print()
643 ND_TCHECK2(*tptr, msg_len); in ldp_pdu_print()
682 msg_len); in ldp_pdu_print()
684 tptr += msg_len+4; in ldp_pdu_print()
685 tlen -= msg_len+4; in ldp_pdu_print()
/external/boringssl/src/fipstools/
Dcavp_sha_test.cc56 size_t msg_len = strtoul(msg_len_str.c_str(), nullptr, 0); in TestSHA() local
57 if (msg_len % 8 != 0 || in TestSHA()
58 msg_len / 8 > msg.size()) { in TestSHA()
61 msg_len /= 8; in TestSHA()
66 if (!EVP_Digest(msg.data(), msg_len, out.data(), &digest_len, md, nullptr) || in TestSHA()
/external/boringssl/src/crypto/cmac/
Dcmac_test.cc29 const uint8_t *msg, size_t msg_len, const uint8_t *expected) { in test() argument
34 ASSERT_TRUE(AES_CMAC(out, key, key_len, msg, msg_len)); in test()
41 for (unsigned chunk_size = 1; chunk_size <= msg_len; chunk_size++) { in test()
47 while (done < msg_len) { in test()
48 size_t todo = std::min(msg_len - done, static_cast<size_t>(chunk_size)); in test()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/
D10-1-buildonly.c17 size_t msg_len; in test_mq_timedsend_prototype() local
22 msg_len = 0; in test_mq_timedsend_prototype()
25 err = mq_timedsend(mqdes, msgp, msg_len, msg_prio, &timeout); in test_mq_timedsend_prototype()
/external/ltp/utils/sctp/testlib/
Dsctputil.c96 test_print_message(int sk, struct msghdr *msg, size_t msg_len) in test_print_message() argument
117 printf("DATA(%d): ", msg_len); in test_print_message()
118 while ( msg_len > 0 ) { in test_print_message()
125 save = text[msg_len-1]; in test_print_message()
126 if ( len > msg_len ) { in test_print_message()
127 text[(len = msg_len) - 1] = '\0'; in test_print_message()
130 if ( (msg_len -= len) > 0 ) { index++; } in test_print_message()
137 text[msg_len-1] = save; in test_print_message()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_host.cc181 const ssize_t msg_len = base::UnixDomainSocket::RecvMsg( in HandleRequest() local
184 if (msg_len == 0 || (msg_len == -1 && errno == ECONNRESET)) { in HandleRequest()
191 if (msg_len < 0 || fds.size() != 1 || fds[0].get() < 0) { in HandleRequest()
198 base::Pickle pickle(buf, msg_len); in HandleRequest()
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv07.c116 int msg_len, msgq_id; in test_msg_noerror() local
133 msg_len = sizeof(MSG1) / 2; in test_msg_noerror()
136 TEST(msgrcv(msgq_id, &rcv_buf, msg_len, MSGTYPE1, MSG_NOERROR)); in test_msg_noerror()
140 if (strncmp(rcv_buf.mtext, MSG1, msg_len) == 0 && in test_msg_noerror()

1234