Home
last modified time | relevance | path

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

123456789

/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_ifla.h43 init_ifinfomsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_ifinfomsg() argument
46 .nlmsg_len = msg_len, in init_ifinfomsg()
61 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_ifinfomsg()
67 print_ifinfomsg(const unsigned int msg_len) in print_ifinfomsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_ifinfomsg()
Dnlattr_tca_stab.c46 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
49 .nlmsg_len = msg_len, in init_tcmsg()
62 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
68 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
Dnlattr_mdba_router_port.c54 init_br_port_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_br_port_msg() argument
57 .nlmsg_len = msg_len, in init_br_port_msg()
70 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_br_port_msg()
76 print_br_port_msg(const unsigned int msg_len) in print_br_port_msg() argument
82 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_br_port_msg()
Dnlattr_tc_stats.c42 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
45 .nlmsg_len = msg_len, in init_tcmsg()
58 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
64 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
71 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
/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_ifla.h43 init_ifinfomsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_ifinfomsg() argument
46 .nlmsg_len = msg_len, in init_ifinfomsg()
61 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_ifinfomsg()
67 print_ifinfomsg(const unsigned int msg_len) in print_ifinfomsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_ifinfomsg()
Dnlattr_tca_stab.c46 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
49 .nlmsg_len = msg_len, in init_tcmsg()
62 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
68 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
Dnlattr_mdba_router_port.c54 init_br_port_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_br_port_msg() argument
57 .nlmsg_len = msg_len, in init_br_port_msg()
70 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_br_port_msg()
76 print_br_port_msg(const unsigned int msg_len) in print_br_port_msg() argument
82 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_br_port_msg()
Dnlattr_tc_stats.c42 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
45 .nlmsg_len = msg_len, in init_tcmsg()
58 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
64 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
71 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
/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_ifla.h43 init_ifinfomsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_ifinfomsg() argument
46 .nlmsg_len = msg_len, in init_ifinfomsg()
61 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_ifinfomsg()
67 print_ifinfomsg(const unsigned int msg_len) in print_ifinfomsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_ifinfomsg()
Dnlattr_tca_stab.c46 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
49 .nlmsg_len = msg_len, in init_tcmsg()
62 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
68 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
75 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
Dnlattr_mdba_router_port.c54 init_br_port_msg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_br_port_msg() argument
57 .nlmsg_len = msg_len, in init_br_port_msg()
70 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_br_port_msg()
76 print_br_port_msg(const unsigned int msg_len) in print_br_port_msg() argument
82 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_br_port_msg()
Dnlattr_tc_stats.c42 init_tcmsg(struct nlmsghdr *const nlh, const unsigned int msg_len) in init_tcmsg() argument
45 .nlmsg_len = msg_len, in init_tcmsg()
58 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg()
64 print_tcmsg(const unsigned int msg_len) in print_tcmsg() argument
71 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg()
/external/boringssl/src/ssl/
Dd1_both.cc160 frag->msg_len = msg_hdr->msg_len; in dtls1_hm_fragment_new()
164 (uint8_t *)OPENSSL_malloc(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len); in dtls1_hm_fragment_new()
172 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
175 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
182 if (msg_hdr->msg_len > 0) { in dtls1_hm_fragment_new()
184 if (msg_hdr->msg_len + 7 < msg_hdr->msg_len) { in dtls1_hm_fragment_new()
188 size_t bitmask_len = (msg_hdr->msg_len + 7) / 8; in dtls1_hm_fragment_new()
212 size_t msg_len = frag->msg_len; in dtls1_hm_fragment_mark() local
214 if (frag->reassembly == NULL || start > end || end > msg_len) { in dtls1_hm_fragment_mark()
219 assert(msg_len > 0); in dtls1_hm_fragment_mark()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dd1_both.cc160 frag->msg_len = msg_hdr->msg_len; in dtls1_hm_fragment_new()
164 (uint8_t *)OPENSSL_malloc(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len); in dtls1_hm_fragment_new()
172 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
175 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
182 if (msg_hdr->msg_len > 0) { in dtls1_hm_fragment_new()
184 if (msg_hdr->msg_len + 7 < msg_hdr->msg_len) { in dtls1_hm_fragment_new()
188 size_t bitmask_len = (msg_hdr->msg_len + 7) / 8; in dtls1_hm_fragment_new()
212 size_t msg_len = frag->msg_len; in dtls1_hm_fragment_mark() local
214 if (frag->reassembly == NULL || start > end || end > msg_len) { in dtls1_hm_fragment_mark()
219 assert(msg_len > 0); in dtls1_hm_fragment_mark()
[all …]
/external/boringssl/src/crypto/trust_token/
Dtrust_token_test.cc207 size_t msg_len, resp_len; in TEST_P() local
212 TRUST_TOKEN_CLIENT_begin_issuance(client.get(), &issue_msg, &msg_len, 1)); in TEST_P()
215 issuer.get(), &issue_resp, &resp_len, &tokens_issued, issue_msg, msg_len, in TEST_P()
230 client.get(), &redeem_msg, &msg_len, token, NULL, 0, 0)); in TEST_P()
238 &client_data_len, &redemption_time, redeem_msg, msg_len, 600)); in TEST_P()
247 size_t msg_len, resp_len; in TEST_P() local
249 &msg_len, 10)); in TEST_P()
251 msg_len = 10; in TEST_P()
254 issuer.get(), &issue_resp, &resp_len, &tokens_issued, issue_msg, msg_len, in TEST_P()
264 size_t msg_len, resp_len; in TEST_P() local
[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("%s: read: bad msg_len %u", __func__, 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()
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/
Dtrust_token_test.cc169 size_t msg_len, resp_len; in TEST_P() local
174 TRUST_TOKEN_CLIENT_begin_issuance(client.get(), &issue_msg, &msg_len, 1)); in TEST_P()
177 issuer.get(), &issue_resp, &resp_len, &tokens_issued, issue_msg, msg_len, in TEST_P()
192 client.get(), &redeem_msg, &msg_len, token, NULL, 0, 0)); in TEST_P()
200 &client_data_len, &redemption_time, redeem_msg, msg_len, 600)); in TEST_P()
209 size_t msg_len, resp_len; in TEST_P() local
211 &msg_len, 10)); in TEST_P()
213 msg_len = 10; in TEST_P()
216 issuer.get(), &issue_resp, &resp_len, &tokens_issued, issue_msg, msg_len, in TEST_P()
226 size_t msg_len, resp_len; in TEST_P() local
[all …]
/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
367 msg_len = EXTRACT_16BITS(msgptr.v6->msg_len); in olsr_print()
368 if ((msg_len >= sizeof (struct olsr_msg6)) in olsr_print()
369 && (msg_len <= length)) in olsr_print()
373 if (msg_type == 0 || msg_len == 0) { in olsr_print()
385 msg_len, (msg_len_valid == 0) ? " (invalid)" : "")); in olsr_print()
390 msg_tlen = msg_len - sizeof(struct olsr_msg6); in olsr_print()
398 msg_len = EXTRACT_16BITS(msgptr.v4->msg_len); in olsr_print()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_sha_test.cc57 size_t msg_len = strtoul(msg_len_str.c_str(), nullptr, 0); in TestSHA() local
58 if (msg_len % 8 != 0 || in TestSHA()
59 msg_len / 8 > msg.size()) { in TestSHA()
62 msg_len /= 8; in TestSHA()
67 if (!EVP_Digest(msg.data(), msg_len, out.data(), &digest_len, md, nullptr) || in TestSHA()
/external/boringssl/src/util/fipstools/cavp/
Dcavp_sha_test.cc57 size_t msg_len = strtoul(msg_len_str.c_str(), nullptr, 0); in TestSHA() local
58 if (msg_len % 8 != 0 || in TestSHA()
59 msg_len / 8 > msg.size()) { in TestSHA()
62 msg_len /= 8; in TestSHA()
67 if (!EVP_Digest(msg.data(), msg_len, out.data(), &digest_len, md, nullptr) || in TestSHA()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/
Dhash_to_curve.c56 const uint8_t *msg, size_t msg_len, in expand_message_xmd() argument
89 !EVP_DigestUpdate(&ctx, msg, msg_len) || in expand_message_xmd()
178 size_t msg_len, int is_draft06) { in hash_to_field2() argument
182 !expand_message_xmd(md, buf, 2 * L, msg, msg_len, dst, dst_len, in hash_to_field2()
199 unsigned k, const uint8_t *msg, size_t msg_len, in hash_to_scalar() argument
204 !expand_message_xmd(md, buf, L, msg, msg_len, dst, dst_len, is_draft06)) { in hash_to_scalar()
313 const uint8_t *msg, size_t msg_len, int is_draft06) { in hash_to_curve() argument
315 if (!hash_to_field2(group, md, &u0, &u1, dst, dst_len, k, msg, msg_len, in hash_to_curve()
348 size_t dst_len, const uint8_t *msg, size_t msg_len) { in ec_hash_to_curve_p384_xmd_sha512_sswu_draft07() argument
379 dst_len, msg, msg_len, /*is_draft06=*/0); in ec_hash_to_curve_p384_xmd_sha512_sswu_draft07()
[all …]

123456789