Home
last modified time | relevance | path

Searched refs:CMSG_DATA (Results 1 – 25 of 72) sorted by relevance

123

/external/strace/tests/
Dmsg_control.c75 int *fdp = (int *) CMSG_DATA(cmsg); in print_fds()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
168 memcpy(CMSG_DATA(cmsg[0]), src[0], cmsg_len[0] - CMSG_LEN(0)); in test_scm_rights2()
180 memcpy(CMSG_DATA(cmsg[1]), src[1], src1_len - CMSG_LEN(0)); in test_scm_rights2()
215 int *fdp = (int *) CMSG_DATA(cmsg); in test_scm_rights3()
242 struct timeval *tv = (struct timeval *) CMSG_DATA(cmsg); in test_scm_timestamp()
287 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestampns()
333 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestamping()
386 printf(", cmsg_data=\"%.*s\"", n, CMSG_DATA(cmsg)); in print_security()
413 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_security()
[all …]
Dinet-cmsg.c49 const unsigned int *ttl = (const unsigned int *) CMSG_DATA(c); in print_ttl()
57 const uint8_t *tos = (const uint8_t *) CMSG_DATA(c); in print_tos()
65 const unsigned char *opts = (const unsigned char *) CMSG_DATA(c); in print_opts()
83 (const struct sockaddr_in *) CMSG_DATA(c); in print_origdstaddr()
/external/strace/tests-m32/
Dmsg_control.c75 int *fdp = (int *) CMSG_DATA(cmsg); in print_fds()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
168 memcpy(CMSG_DATA(cmsg[0]), src[0], cmsg_len[0] - CMSG_LEN(0)); in test_scm_rights2()
180 memcpy(CMSG_DATA(cmsg[1]), src[1], src1_len - CMSG_LEN(0)); in test_scm_rights2()
215 int *fdp = (int *) CMSG_DATA(cmsg); in test_scm_rights3()
242 struct timeval *tv = (struct timeval *) CMSG_DATA(cmsg); in test_scm_timestamp()
287 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestampns()
333 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestamping()
386 printf(", cmsg_data=\"%.*s\"", n, CMSG_DATA(cmsg)); in print_security()
413 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_security()
[all …]
Dinet-cmsg.c49 const unsigned int *ttl = (const unsigned int *) CMSG_DATA(c); in print_ttl()
57 const uint8_t *tos = (const uint8_t *) CMSG_DATA(c); in print_tos()
65 const unsigned char *opts = (const unsigned char *) CMSG_DATA(c); in print_opts()
83 (const struct sockaddr_in *) CMSG_DATA(c); in print_origdstaddr()
/external/strace/tests-mx32/
Dmsg_control.c75 int *fdp = (int *) CMSG_DATA(cmsg); in print_fds()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
168 memcpy(CMSG_DATA(cmsg[0]), src[0], cmsg_len[0] - CMSG_LEN(0)); in test_scm_rights2()
180 memcpy(CMSG_DATA(cmsg[1]), src[1], src1_len - CMSG_LEN(0)); in test_scm_rights2()
215 int *fdp = (int *) CMSG_DATA(cmsg); in test_scm_rights3()
242 struct timeval *tv = (struct timeval *) CMSG_DATA(cmsg); in test_scm_timestamp()
287 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestampns()
333 struct timespec *ts = (struct timespec *) CMSG_DATA(cmsg); in test_scm_timestamping()
386 printf(", cmsg_data=\"%.*s\"", n, CMSG_DATA(cmsg)); in print_security()
413 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_security()
[all …]
Dinet-cmsg.c49 const unsigned int *ttl = (const unsigned int *) CMSG_DATA(c); in print_ttl()
57 const uint8_t *tos = (const uint8_t *) CMSG_DATA(c); in print_tos()
65 const unsigned char *opts = (const unsigned char *) CMSG_DATA(c); in print_opts()
83 (const struct sockaddr_in *) CMSG_DATA(c); in print_origdstaddr()
/external/valgrind/none/tests/
Dfdleak_cmsg.c71 ((int *)CMSG_DATA(cmsg))[0] = fd1; in server()
72 ((int *)CMSG_DATA(cmsg))[1] = fd2; in server()
135 fd1 = ((int *)CMSG_DATA(cmsg))[0]; in client()
136 fd2 = ((int *)CMSG_DATA(cmsg))[1]; in client()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc235 (((uint8_t*)CMSG_DATA(hdr)) - (uint8_t*)hdr); in ClientEvent()
242 close(reinterpret_cast<int*>(CMSG_DATA(hdr))[i]); in ClientEvent()
245 signal_fd = reinterpret_cast<int*>(CMSG_DATA(hdr))[0]; in ClientEvent()
249 reinterpret_cast<struct ucred*>(CMSG_DATA(hdr)); in ClientEvent()
Dcrash_generation_client.cc72 int* p = reinterpret_cast<int*>(CMSG_DATA(hdr)); in RequestDump()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtimestamping.c182 (struct timeval *)CMSG_DATA(cmsg); in printpacket()
190 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
198 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
221 (struct sock_extended_err *)CMSG_DATA(cmsg); in printpacket()
241 (struct in_pktinfo *)CMSG_DATA(cmsg); in printpacket()
Dtxtimestamp.c191 tss = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
196 serr = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
206 struct in_pktinfo *info = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
211 struct in6_pktinfo *info6 = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_utils_posix.cc110 reinterpret_cast<int*>(CMSG_DATA(cmsg))[i] = platform_handles[i].handle; in PlatformChannelSendmsgWithHandles()
137 reinterpret_cast<int*>(CMSG_DATA(cmsg))[i] = handles[i].handle; in PlatformChannelSendHandles()
185 const int* fds = reinterpret_cast<int*>(CMSG_DATA(cmsg)); in PlatformChannelRecvmsg()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c592 tmp = (struct in_pktinfo *) CMSG_DATA(cmptr); in recvfrom_flags()
607 sin->sin_addr = *(struct in_addr*)CMSG_DATA(cmptr); in recvfrom_flags()
616 struct sockaddr_dl *sdl = (struct sockaddr_dl *) CMSG_DATA(cmptr); in recvfrom_flags()
636 *ttl = *(u_char*)CMSG_DATA(cmptr); in recvfrom_flags()
641 *ttl = *(int*)CMSG_DATA(cmptr); in recvfrom_flags()
650 struct in6_pktinfo *ip6_info = (struct in6_pktinfo*)CMSG_DATA(cmptr); in recvfrom_flags()
668 *ttl = *(int*)CMSG_DATA(cmptr); in recvfrom_flags()
/external/libchrome/base/posix/
Dunix_domain_socket_linux.cc71 memcpy(CMSG_DATA(cmsg), &fds[0], sizeof(int) * fds.size()); in SendMsg()
145 wire_fds = reinterpret_cast<int*>(CMSG_DATA(cmsg)); in RecvMsgWithFlags()
155 pid = reinterpret_cast<struct ucred*>(CMSG_DATA(cmsg))->pid; in RecvMsgWithFlags()
/external/compiler-rt/test/msan/Linux/
Dcmsghdr.cc62 memcpy(CMSG_DATA(cmsg), myfds, kNumFds * sizeof(int)); in main()
82 memcpy(CMSG_DATA(cmsg), &cred, sizeof(struct ucred)); in main()
/external/ltp/utils/sctp/lib/
Dsendmsg.c59 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in sctp_sendmsg()
102 memcpy(CMSG_DATA(cmsg), sinfo, sizeof(struct sctp_sndrcvinfo)); in sctp_send()
Drecvmsg.c98 memcpy(sinfo, CMSG_DATA(cmsg), sizeof(struct sctp_sndrcvinfo)); in sctp_recvmsg()
/external/dnsmasq/src/
Dforward.c68 struct in_pktinfo *pkt = (struct in_pktinfo *)CMSG_DATA(cmptr); in send_from()
75 struct in_addr *a = (struct in_addr *)CMSG_DATA(cmptr); in send_from()
85 struct in6_pktinfo *pkt = (struct in6_pktinfo *)CMSG_DATA(cmptr); in send_from()
654 dst_addr_4 = dst_addr.addr.addr4 = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_spec_dst; in receive_query()
655 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in receive_query()
662 dst_addr_4 = dst_addr.addr.addr4 = *((struct in_addr *)CMSG_DATA(cmptr)); in receive_query()
665 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in receive_query()
667 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in receive_query()
678 dst_addr.addr.addr6 = ((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_addr; in receive_query()
679 if_index =((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_ifindex; in receive_query()
/external/openssh/
Dmonitor_fdpass.c80 *(int *)CMSG_DATA(cmsg) = fd; in mm_send_fd()
180 fd = (*(int *)CMSG_DATA(cmsg)); in mm_receive_fd()
/external/iputils/
Dtracepath6.c177 e = (struct sock_extended_err *)CMSG_DATA(cmsg); in recverr()
183 memcpy(&rethops, CMSG_DATA(cmsg), sizeof(rethops)); in recverr()
192 e = (struct sock_extended_err *)CMSG_DATA(cmsg); in recverr()
195 rethops = *(__u8*)CMSG_DATA(cmsg); in recverr()
/external/ltp/utils/sctp/func_tests/
Dtest_assoc_shutdown.c130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
194 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
Dtest_assoc_abort.c130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
193 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
Dtest_inaddr_any.c162 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
210 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); in main()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c131 * (int *) CMSG_DATA(cmsg) = fd; in multiprocessing_sendfd()
191 fd = * (int *) CMSG_DATA(cmsg); in multiprocessing_recvfd()
/external/ipsec-tools/src/racoon/
Dsockmisc.c448 pi = (struct in6_pktinfo *)(CMSG_DATA(cm));
474 struct in_pktinfo *pi = (struct in_pktinfo *)(CMSG_DATA(cm));
497 memcpy(&sin6->sin6_addr, CMSG_DATA(cm),
515 memcpy(&sin->sin_addr, CMSG_DATA(cm),
610 pi = (struct in6_pktinfo *)CMSG_DATA(cm);
670 pi = (struct in_pktinfo *)CMSG_DATA(cm);

123