Home
last modified time | relevance | path

Searched refs:msg_hdr (Results 1 – 25 of 77) sorted by relevance

1234

/external/strace/
Dfetch_struct_mmsghdr.c58 p_native->msg_hdr.msg_name = (void *) (unsigned long) in MPERS_PRINTER_DECL()
59 v_compat.msg_hdr.msg_name; in MPERS_PRINTER_DECL()
61 p_native->msg_hdr.msg_namelen = in MPERS_PRINTER_DECL()
62 v_compat.msg_hdr.msg_namelen; in MPERS_PRINTER_DECL()
64 p_native->msg_hdr.msg_iov = (void *) (unsigned long) in MPERS_PRINTER_DECL()
65 v_compat.msg_hdr.msg_iov; in MPERS_PRINTER_DECL()
67 p_native->msg_hdr.msg_iovlen = in MPERS_PRINTER_DECL()
68 v_compat.msg_hdr.msg_iovlen; in MPERS_PRINTER_DECL()
70 p_native->msg_hdr.msg_control = (void *) (unsigned long) in MPERS_PRINTER_DECL()
71 v_compat.msg_hdr.msg_control; in MPERS_PRINTER_DECL()
[all …]
Dmmsghdr.c67 print_struct_msghdr(tcp, &mmsg->msg_hdr, c->p_user_msg_namelen, in print_struct_mmsghdr()
117 data->namelen[i] = mh.msg_hdr.msg_namelen; in save_mmsgvec_namelen()
160 (kernel_ulong_t) mmsg.msg_hdr.msg_iovlen, i); in dumpiov_in_mmsghdr()
161 dumpiov_upto(tcp, mmsg.msg_hdr.msg_iovlen, in dumpiov_in_mmsghdr()
162 ptr_to_kulong(mmsg.msg_hdr.msg_iov), in dumpiov_in_mmsghdr()
Dmsghdr.h9 struct msghdr msg_hdr; member
/external/strace/tests-mx32/
Dmmsg_name.c106 send_mh[i].msg_hdr.msg_iov = &send_iov[i]; in test_mmsg_name()
107 send_mh[i].msg_hdr.msg_iovlen = 1; in test_mmsg_name()
108 send_mh[i].msg_hdr.msg_name = &send_addr[i]; in test_mmsg_name()
109 send_mh[i].msg_hdr.msg_namelen = i + 1; in test_mmsg_name()
110 send_mh[i].msg_hdr.msg_control = 0; in test_mmsg_name()
111 send_mh[i].msg_hdr.msg_controllen = 0; in test_mmsg_name()
112 send_mh[i].msg_hdr.msg_flags = 0; in test_mmsg_name()
131 print_msghdr(&send_mh[i].msg_hdr, i + 1); in test_mmsg_name()
139 send_mh[i].msg_hdr.msg_name = 0; in test_mmsg_name()
140 send_mh[i].msg_hdr.msg_namelen = 0; in test_mmsg_name()
[all …]
Dmmsg.c80 .msg_hdr = { in main()
85 .msg_hdr = { in main()
155 .msg_hdr = { in main()
160 .msg_hdr = { in main()
/external/strace/tests/
Dmmsg_name.c106 send_mh[i].msg_hdr.msg_iov = &send_iov[i]; in test_mmsg_name()
107 send_mh[i].msg_hdr.msg_iovlen = 1; in test_mmsg_name()
108 send_mh[i].msg_hdr.msg_name = &send_addr[i]; in test_mmsg_name()
109 send_mh[i].msg_hdr.msg_namelen = i + 1; in test_mmsg_name()
110 send_mh[i].msg_hdr.msg_control = 0; in test_mmsg_name()
111 send_mh[i].msg_hdr.msg_controllen = 0; in test_mmsg_name()
112 send_mh[i].msg_hdr.msg_flags = 0; in test_mmsg_name()
131 print_msghdr(&send_mh[i].msg_hdr, i + 1); in test_mmsg_name()
139 send_mh[i].msg_hdr.msg_name = 0; in test_mmsg_name()
140 send_mh[i].msg_hdr.msg_namelen = 0; in test_mmsg_name()
[all …]
Dmmsg.c80 .msg_hdr = { in main()
85 .msg_hdr = { in main()
155 .msg_hdr = { in main()
160 .msg_hdr = { in main()
/external/strace/tests-m32/
Dmmsg_name.c106 send_mh[i].msg_hdr.msg_iov = &send_iov[i]; in test_mmsg_name()
107 send_mh[i].msg_hdr.msg_iovlen = 1; in test_mmsg_name()
108 send_mh[i].msg_hdr.msg_name = &send_addr[i]; in test_mmsg_name()
109 send_mh[i].msg_hdr.msg_namelen = i + 1; in test_mmsg_name()
110 send_mh[i].msg_hdr.msg_control = 0; in test_mmsg_name()
111 send_mh[i].msg_hdr.msg_controllen = 0; in test_mmsg_name()
112 send_mh[i].msg_hdr.msg_flags = 0; in test_mmsg_name()
131 print_msghdr(&send_mh[i].msg_hdr, i + 1); in test_mmsg_name()
139 send_mh[i].msg_hdr.msg_name = 0; in test_mmsg_name()
140 send_mh[i].msg_hdr.msg_namelen = 0; in test_mmsg_name()
[all …]
Dmmsg.c80 .msg_hdr = { in main()
85 .msg_hdr = { in main()
155 .msg_hdr = { in main()
160 .msg_hdr = { in main()
/external/rust/android-crates-io/crates/quiche/deps/boringssl/src/ssl/
Dd1_both.cc152 const struct hm_header_st *msg_hdr) { in dtls1_hm_fragment_new() argument
158 frag->type = msg_hdr->type; in dtls1_hm_fragment_new()
159 frag->seq = msg_hdr->seq; in dtls1_hm_fragment_new()
160 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()
171 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls1_hm_fragment_new()
172 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
173 !CBB_add_u16(cbb.get(), msg_hdr->seq) || 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()
[all …]
Dd1_pkt.cc147 struct hm_header_st msg_hdr; in dtls1_open_app_data() local
149 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_app_data()
155 if (msg_hdr.type == SSL3_MT_FINISHED && in dtls1_open_app_data()
156 msg_hdr.seq == ssl->d1->handshake_read_seq - 1) { in dtls1_open_app_data()
157 if (msg_hdr.frag_off == 0) { in dtls1_open_app_data()
/external/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg01.c82 snd_msg[0].msg_hdr.msg_iov = snd1; in setup()
83 snd_msg[0].msg_hdr.msg_iovlen = 2; in setup()
84 snd_msg[1].msg_hdr.msg_iov = snd2; in setup()
85 snd_msg[1].msg_hdr.msg_iovlen = 1; in setup()
88 rcv_msg[0].msg_hdr.msg_iov = rcv1; in setup()
89 rcv_msg[0].msg_hdr.msg_iovlen = 1; in setup()
90 rcv_msg[1].msg_hdr.msg_iov = rcv2; in setup()
91 rcv_msg[1].msg_hdr.msg_iovlen = 1; in setup()
/external/cronet/tot/third_party/boringssl/src/ssl/
Dd1_both.cc277 const struct hm_header_st *msg_hdr) { in dtls_new_incoming_message() argument
283 frag->type = msg_hdr->type; in dtls_new_incoming_message()
284 frag->seq = msg_hdr->seq; in dtls_new_incoming_message()
287 if (!frag->data.InitForOverwrite(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len)) { in dtls_new_incoming_message()
292 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls_new_incoming_message()
293 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
294 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls_new_incoming_message()
296 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
301 if (!frag->reassembly.Init(msg_hdr->msg_len)) { in dtls_new_incoming_message()
321 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message() argument
[all …]
Dd1_pkt.cc265 struct hm_header_st msg_hdr; in dtls1_open_app_data() local
267 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_app_data()
273 if (msg_hdr.type == SSL3_MT_FINISHED && in dtls1_open_app_data()
274 msg_hdr.seq == ssl->d1->handshake_read_seq - 1) { in dtls1_open_app_data()
275 if (msg_hdr.frag_off == 0) { in dtls1_open_app_data()
/external/cronet/stable/third_party/boringssl/src/ssl/
Dd1_both.cc277 const struct hm_header_st *msg_hdr) { in dtls_new_incoming_message() argument
283 frag->type = msg_hdr->type; in dtls_new_incoming_message()
284 frag->seq = msg_hdr->seq; in dtls_new_incoming_message()
287 if (!frag->data.InitForOverwrite(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len)) { in dtls_new_incoming_message()
292 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls_new_incoming_message()
293 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
294 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls_new_incoming_message()
296 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
301 if (!frag->reassembly.Init(msg_hdr->msg_len)) { in dtls_new_incoming_message()
321 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message() argument
[all …]
Dd1_pkt.cc265 struct hm_header_st msg_hdr; in dtls1_open_app_data() local
267 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_app_data()
273 if (msg_hdr.type == SSL3_MT_FINISHED && in dtls1_open_app_data()
274 msg_hdr.seq == ssl->d1->handshake_read_seq - 1) { in dtls1_open_app_data()
275 if (msg_hdr.frag_off == 0) { in dtls1_open_app_data()
/external/boringssl/src/ssl/
Dd1_both.cc173 const struct hm_header_st *msg_hdr) { in dtls_new_incoming_message() argument
179 frag->type = msg_hdr->type; in dtls_new_incoming_message()
180 frag->seq = msg_hdr->seq; in dtls_new_incoming_message()
183 if (!frag->data.InitForOverwrite(DTLS1_HM_HEADER_LENGTH + msg_hdr->msg_len)) { in dtls_new_incoming_message()
188 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls_new_incoming_message()
189 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
190 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls_new_incoming_message()
192 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls_new_incoming_message()
197 if (!frag->reassembly.Init(msg_hdr->msg_len)) { in dtls_new_incoming_message()
217 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message() argument
[all …]
Dd1_pkt.cc187 struct hm_header_st msg_hdr; in dtls1_open_app_data() local
189 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_app_data()
195 if (msg_hdr.type == SSL3_MT_FINISHED && in dtls1_open_app_data()
196 msg_hdr.seq == ssl->d1->handshake_read_seq - 1) { in dtls1_open_app_data()
197 if (!ssl->d1->sending_flight && msg_hdr.frag_off == 0) { in dtls1_open_app_data()
/external/musl/src/network/
Drecvmmsg.c19 mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0; in recvmmsg()
30 for (int i=0; i<vlen; i++) csize[i] = msgvec[i].msg_hdr.msg_controllen; in recvmmsg()
34 __convert_scm_timestamps(&msgvec[i].msg_hdr, csize[i]); in recvmmsg()
/external/ltp/testcases/cve/
Dcve-2016-7117.c62 .msg_hdr = {
70 .msg_hdr = {
122 msghdrs[0].msg_hdr.msg_iov->iov_base = (void *)&rbuf; in run()
/external/perfetto/src/base/
Dunix_socket.cc618 msghdr msg_hdr = {}; in Send() local
620 msg_hdr.msg_iov = &iov; in Send()
621 msg_hdr.msg_iovlen = 1; in Send()
630 msg_hdr.msg_control = control_buf; in Send()
631 msg_hdr.msg_controllen = control_buf_len; // used by CMSG_FIRSTHDR in Send()
632 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in Send()
641 return SendMsgAllPosix(&msg_hdr); in Send()
649 msghdr msg_hdr = {}; in Receive() local
651 msg_hdr.msg_iov = &iov; in Receive()
652 msg_hdr.msg_iovlen = 1; in Receive()
[all …]
/external/trusty/musl/src/network/
Drecvmmsg.c12 mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0; in recvmmsg()
/external/curl/lib/vquic/
Dvquic.c385 mmsg[i].msg_hdr.msg_iov = &msg_iov[i]; in recvmmsg_packets()
386 mmsg[i].msg_hdr.msg_iovlen = 1; in recvmmsg_packets()
387 mmsg[i].msg_hdr.msg_name = &remote_addr[i]; in recvmmsg_packets()
388 mmsg[i].msg_hdr.msg_namelen = sizeof(remote_addr[i]); in recvmmsg_packets()
389 mmsg[i].msg_hdr.msg_control = &msg_ctrl[i * CMSG_SPACE(sizeof(int))]; in recvmmsg_packets()
390 mmsg[i].msg_hdr.msg_controllen = CMSG_SPACE(sizeof(int)); in recvmmsg_packets()
420 gso_size = vquic_msghdr_get_udp_gro(&mmsg[i].msg_hdr); in recvmmsg_packets()
436 result = recv_cb(bufs[i] + offset, pktlen, mmsg[i].msg_hdr.msg_name, in recvmmsg_packets()
437 mmsg[i].msg_hdr.msg_namelen, 0, userp); in recvmmsg_packets()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_tx.c340 mmsgs[i].msg_hdr.msg_iov = iov + i; in send_udp_sendmmsg()
341 mmsgs[i].msg_hdr.msg_iovlen = 1; in send_udp_sendmmsg()
343 mmsgs[i].msg_hdr.msg_name = (void *)&cfg_dst_addr; in send_udp_sendmmsg()
344 mmsgs[i].msg_hdr.msg_namelen = cfg_alen; in send_udp_sendmmsg()
346 mmsgs[i].msg_hdr.msg_control = control; in send_udp_sendmmsg()
347 mmsgs[i].msg_hdr.msg_controllen = msg_controllen; in send_udp_sendmmsg()
/external/ltp/testcases/kernel/syscalls/recvmmsg/
Drecvmmsg01.c145 msg[0].msg_hdr.msg_iov = iov; in setup()
146 msg[0].msg_hdr.msg_iovlen = 1; in setup()

1234