/external/kernel-headers/original/linux/ |
D | socket.h | 86 struct cmsghdr { struct 102 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument 103 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) 104 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 106 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 107 (struct cmsghdr *)(ctl) : \ 108 (struct cmsghdr *)NULL) 110 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 128 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() 129 struct cmsghdr *__cmsg) in __cmsg_nxthdr() [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/newlib-extras/netinet6/ |
D | in6.h | 585 struct cmsghdr; 611 struct cmsghdr; 614 extern int inet6_option_init __P((void *, struct cmsghdr **, int)); 615 extern int inet6_option_append __P((struct cmsghdr *, const uint8_t *, 617 extern uint8_t *inet6_option_alloc __P((struct cmsghdr *, int, int, int)); 618 extern int inet6_option_next __P((const struct cmsghdr *, uint8_t **)); 619 extern int inet6_option_find __P((const struct cmsghdr *, uint8_t **, int)); 622 extern struct cmsghdr *inet6_rthdr_init __P((void *, int)); 623 extern int inet6_rthdr_add __P((struct cmsghdr *, const struct in6_addr *, 625 extern int inet6_rthdr_lasthop __P((struct cmsghdr *, unsigned int)); [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/newlib-extras/sys/ |
D | socket.h | 329 struct cmsghdr { struct 361 _ALIGN(sizeof(struct cmsghdr))) 366 _ALIGN(sizeof(struct cmsghdr)) > \ 368 (struct cmsghdr *)NULL : \ 369 (struct cmsghdr *)((caddr_t)(cmsg) + _ALIGN((cmsg)->cmsg_len))) 371 #define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) 375 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l)) 376 #define CMSG_LEN(l) (_ALIGN(sizeof(struct cmsghdr)) + (l))
|
/external/clang/test/Sema/ |
D | darwin-align-cast.c | 8 struct cmsghdr {}; struct 13 cmsghdr)) + __DARWIN_ALIGN(l)) 21 …char control[(((__darwin_size_t)((char *)(sizeof(struct cmsghdr)) + (sizeof(__darwin_size_t) - 1))… in sendFileDescriptor()
|
/external/chromium_org/net/tools/quic/ |
D | quic_socket_utils.cc | 27 for (cmsghdr* cmsg = CMSG_FIRSTHDR(hdr); in GetAddressFromMsghdr() 56 struct cmsghdr *cmsg; in GetOverflowFromMsghdr() 102 struct cmsghdr *cmsg = (struct cmsghdr *) cbuf; in ReadPacket() 170 cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in WritePacket() 183 cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in WritePacket()
|
/external/openssh/ |
D | monitor_fdpass.c | 53 struct cmsghdr hdr; in mm_send_fd() 56 struct cmsghdr *cmsg; in mm_send_fd() 114 struct cmsghdr hdr; in mm_receive_fd() 117 struct cmsghdr *cmsg; in mm_receive_fd()
|
D | defines.h | 505 #define CMSG_LEN(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 510 #define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len)) 515 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr))) 524 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ 525 (struct cmsghdr *)(mhdr)->msg_control : \ 526 (struct cmsghdr *)NULL)
|
/external/valgrind/main/none/tests/ |
D | fdleak_cmsg.c | 58 struct cmsghdr *cmsg; in server() 90 struct cmsghdr cm; in client() 95 struct cmsghdr *cmsg = &control_un.cm; in client()
|
/external/iputils/ |
D | ping6.c | 148 struct cmsghdr *srcrt; 196 return (sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0) + in inet6_srcrt_space() 200 extern struct cmsghdr * inet6_srcrt_init(void *bp, int type) in inet6_srcrt_init() 202 struct cmsghdr *cmsg; in inet6_srcrt_init() 207 memset(bp, 0, sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0)); in inet6_srcrt_init() 208 cmsg = (struct cmsghdr *) bp; in inet6_srcrt_init() 210 cmsg->cmsg_len = sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0); in inet6_srcrt_init() 217 int inet6_srcrt_add(struct cmsghdr *cmsg, const struct in6_addr *addr) in inet6_srcrt_add() 845 srcrt = (struct cmsghdr*)(cmsgbuf+cmsglen); in main() 1040 struct cmsghdr *cmsg; in main() [all …]
|
D | ping.c | 107 struct cmsghdr cm; 109 } cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO}, 611 struct cmsghdr *cmsg; in receive_error_msg() 788 struct cmsghdr *cmsg; in parse_reply()
|
/external/chromium_org/base/posix/ |
D | unix_domain_socket_linux.cc | 34 struct cmsghdr* cmsg; in SendMsg() 89 struct cmsghdr* cmsg; in RecvMsgWithFlags()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 388 struct cmsghdr *cm; 413 cm = (struct cmsghdr *)cmsgbuf; 425 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&m); 427 cm = (struct cmsghdr *)CMSG_NXTHDR(&m, cm)) { 561 struct cmsghdr *cm; 592 cm = (struct cmsghdr *)cmsgbuf; 633 struct cmsghdr *cm; 652 cm = (struct cmsghdr *)cmsgbuf;
|
/external/dhcpcd/ |
D | ipv6rs.c | 193 struct cmsghdr *cm; in ipv6rs_sendprobe() 271 struct cmsghdr *cm; in ipv6rs_handledata() 307 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&rcvhdr); in ipv6rs_handledata() 309 cm = (struct cmsghdr *)CMSG_NXTHDR(&rcvhdr, cm)) in ipv6rs_handledata()
|
D | lpf.c | 178 struct cmsghdr *cmsg; in get_raw_packet()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_posix.cc | 793 CHECK_TYPE_SIZE(cmsghdr); 794 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 795 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 796 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
/external/dnsmasq/src/ |
D | dhcp.c | 110 struct cmsghdr *cmptr; in dhcp_packet() 118 struct cmsghdr align; /* this ensures alignment */ in dhcp_packet() 174 if (msg.msg_controllen >= sizeof(struct cmsghdr)) in dhcp_packet() 184 if (msg.msg_controllen >= sizeof(struct cmsghdr)) in dhcp_packet() 191 if (msg.msg_controllen >= sizeof(struct cmsghdr)) in dhcp_packet()
|
D | forward.c | 36 struct cmsghdr align; /* this ensures alignment */ in send_from() 60 struct cmsghdr *cmptr; in send_from() 574 struct cmsghdr *cmptr; in receive_query() 576 struct cmsghdr align; /* this ensures alignment */ in receive_query() 634 if (msg.msg_controllen < sizeof(struct cmsghdr)) in receive_query()
|
D | tftp.c | 59 struct cmsghdr align; /* this ensures alignment */ in tftp_request() 94 struct cmsghdr *cmptr; in tftp_request()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 517 struct cmsghdr *cmptr; in recvfrom_flags() 519 struct cmsghdr cm; in recvfrom_flags() 564 if (msg.msg_controllen < (socklen_t)sizeof(struct cmsghdr) || in recvfrom_flags()
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
D | demo.cc | 73 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in SendFds() 128 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in GetFds()
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_sock_util.c | 116 struct cmsghdr *cmsg; in sock_send_fd()
|
/external/iputils/ninfod/ |
D | ninfod.c | 292 struct cmsghdr *cmsg; in ni_recv() 337 struct cmsghdr *cmsg; in ni_send()
|
/external/openssl/crypto/bio/ |
D | bss_dgram.c | 1016 struct cmsghdr *cmsg; in dgram_sctp_read() 1231 struct cmsghdr *cmsg; in dgram_sctp_write() 1277 cmsg = (struct cmsghdr *)cmsgbuf; in dgram_sctp_write() 1289 cmsg = (struct cmsghdr *)&cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo))]; in dgram_sctp_write() 1299 cmsg = (struct cmsghdr *)cmsgbuf; in dgram_sctp_write()
|
/external/chromium_org/third_party/openssl/openssl/crypto/bio/ |
D | bss_dgram.c | 1016 struct cmsghdr *cmsg; in dgram_sctp_read() 1231 struct cmsghdr *cmsg; in dgram_sctp_write() 1277 cmsg = (struct cmsghdr *)cmsgbuf; in dgram_sctp_write() 1289 cmsg = (struct cmsghdr *)&cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo))]; in dgram_sctp_write() 1299 cmsg = (struct cmsghdr *)cmsgbuf; in dgram_sctp_write()
|
/external/chromium_org/ipc/ |
D | ipc_channel_posix.cc | 403 struct cmsghdr *cmsg; in ProcessOutgoingMessages() 902 for (cmsghdr* cmsg = CMSG_FIRSTHDR(msg); in ExtractFileDescriptorsFromMsghdr()
|