/external/ltp/utils/sctp/func_tests/ |
test_timetolive.c | 100 struct cmsghdr *cmsg; local 199 cmsg = CMSG_FIRSTHDR(&outmessage); 200 cmsg->cmsg_level = IPPROTO_SCTP; 201 cmsg->cmsg_type = SCTP_SNDRCV; 202 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 203 outmessage.msg_controllen = cmsg->cmsg_len; 204 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); 273 cmsg = CMSG_FIRSTHDR(&outmessage); 274 cmsg->cmsg_level = IPPROTO_SCTP; 275 cmsg->cmsg_type = SCTP_SNDRCV [all...] |
test_1_to_1_addrs.c | 90 struct cmsghdr *cmsg; local 156 cmsg = CMSG_FIRSTHDR(&outmessage); 157 cmsg->cmsg_level = IPPROTO_SCTP; 158 cmsg->cmsg_type = SCTP_SNDRCV; 159 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 160 outmessage.msg_controllen = cmsg->cmsg_len; 161 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);
|
test_1_to_1_nonblock.c | 75 struct cmsghdr *cmsg; local 166 cmsg = CMSG_FIRSTHDR(&outmessage); 167 cmsg->cmsg_level = IPPROTO_SCTP; 168 cmsg->cmsg_type = SCTP_SNDRCV; 169 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 170 outmessage.msg_controllen = cmsg->cmsg_len; 171 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);
|
test_fragments.c | 85 struct cmsghdr *cmsg; local 149 cmsg = CMSG_FIRSTHDR(&outmessage); 150 cmsg->cmsg_level = IPPROTO_SCTP; 151 cmsg->cmsg_type = SCTP_SNDRCV; 152 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 153 outmessage.msg_controllen = cmsg->cmsg_len; 154 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
socket.h | 480 #define CMSG_DATA(cmsg) \
481 ((u_char *)(void *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))
482 #define CCMSG_DATA(cmsg) \
483 ((const u_char *)(const void *)(cmsg) + \
487 * Alignment requirement for CMSG struct manipulation.
501 #define CMSG_NXTHDR(mhdr, cmsg) \
502 (((__caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \
506 (struct cmsghdr *)((__caddr_t)(cmsg) + \
507 __CMSG_ALIGN((cmsg)->cmsg_len))) [all...] |
/external/iputils/ninfod/ |
ninfod.c | 292 struct cmsghdr *cmsg; local 315 for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg; 316 cmsg = CMSG_NXTHDR(&msgh, cmsg)) { 317 if (cmsg->cmsg_level == IPPROTO_IPV6 && 318 (cmsg->cmsg_type == IPV6_PKTINFO 320 || cmsg->cmsg_type == IPV6_2292PKTINFO 323 memcpy(&p->pktinfo, CMSG_DATA(cmsg), sizeof(p->pktinfo)); 337 struct cmsghdr *cmsg; local [all...] |
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_handler.h | 98 } cmsg; member in struct:ctrl_msgbuf
|
/prebuilts/go/darwin-x86/src/syscall/ |
syscall_dragonfly_amd64.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
syscall_freebsd_amd64.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
syscall_freebsd_arm.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
/prebuilts/go/linux-x86/src/syscall/ |
syscall_dragonfly_amd64.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
syscall_freebsd_amd64.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
syscall_freebsd_arm.go | 31 func (cmsg *Cmsghdr) SetLen(length int) { 32 cmsg.Len = uint32(length)
|
/bionic/libc/include/sys/ |
socket.h | 107 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg)) 109 #define CMSG_DATA(cmsg) (((unsigned char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 115 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control))) 121 static inline struct cmsghdr* __cmsg_nxthdr(struct msghdr* msg, struct cmsghdr* cmsg) { 124 (__BIONIC_CAST(reinterpret_cast, char*, cmsg) + CMSG_ALIGN(cmsg->cmsg_len))) [all...] |
/external/iputils/ |
tracepath.c | 96 struct cmsghdr *cmsg; local 149 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { 150 if (cmsg->cmsg_level == SOL_IP) { 151 if (cmsg->cmsg_type == IP_RECVERR) { 152 e = (struct sock_extended_err *) CMSG_DATA(cmsg); 153 } else if (cmsg->cmsg_type == IP_TTL) { 154 memcpy(&rethops, CMSG_DATA(cmsg), sizeof(rethops)) [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_platform_linux.cc | 298 // see 'man recvmsg' and 'man 3 cmsg'. 302 struct cmsghdr *cmsg = CMSG_FIRSTHDR(msg); local 303 for (; cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { 304 if (cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_RIGHTS) 306 int n = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(fds[0]); 308 fds[res++] = ((int*)CMSG_DATA(cmsg))[i];
|
/external/libpcap/ |
pcap-bt-linux.c | 301 struct cmsghdr *cmsg; local 340 cmsg = CMSG_FIRSTHDR(&msg); 341 while (cmsg) { 342 switch (cmsg->cmsg_type) { 344 memcpy(&in, CMSG_DATA(cmsg), sizeof in); 347 memcpy(&pkth.ts, CMSG_DATA(cmsg), 351 cmsg = CMSG_NXTHDR(&msg, cmsg);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
mswsock.h | 179 #define WSA_CMSG_NXTHDR(msg,cmsg) ((!(cmsg)) ? WSA_CMSG_FIRSTHDR(msg) : ((((u_char *)(cmsg) + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len) + sizeof(WSACMSGHDR)) > (u_char *)((msg)->Control.buf) + (msg)->Control.len) ? (LPWSACMSGHDR)NULL : (LPWSACMSGHDR)((u_char *)(cmsg) + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len)))) 180 #define WSA_CMSG_DATA(cmsg) ((u_char *)(cmsg) + WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR)))
|
/art/runtime/jdwp/ |
jdwp_adb.cc | 187 cmsghdr* cmsg = CMSG_FIRSTHDR(&msg); local 188 cmsg->cmsg_len = msg.msg_controllen; 189 cmsg->cmsg_level = SOL_SOCKET; 190 cmsg->cmsg_type = SCM_RIGHTS; 191 (reinterpret_cast<int*>(CMSG_DATA(cmsg)))[0] = -1; 205 return (reinterpret_cast<int*>(CMSG_DATA(cmsg)))[0];
|
/external/iproute2/examples/bpf/ |
bpf_agent.c | 176 struct cmsghdr *cmsg; local 187 cmsg = CMSG_FIRSTHDR(&msg.hdr); 188 if (!cmsg || cmsg->cmsg_type != SCM_RIGHTS) 193 min_fd = (cmsg->cmsg_len - sizeof(*cmsg)) / sizeof(fd);
|