Home
last modified time | relevance | path

Searched refs:cmsg_len (Results 1 – 19 of 19) sorted by relevance

/glibc-2.36/inet/
Dinet6_option.c28 unsigned char *p = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in add_pad()
44 cmsg->cmsg_len += len; in add_pad()
118 newp->cmsg_len = CMSG_LEN (0); in inet6_option_init()
181 int dsize = cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
186 cmsg->cmsg_len += sizeof (struct ip6_ext); in option_alloc()
194 uint8_t *result = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
195 cmsg->cmsg_len += datalen; in option_alloc()
199 dsize = cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
203 assert (((cmsg->cmsg_len - CMSG_LEN (0)) % 8) == 0); in option_alloc()
204 int len8b = (cmsg->cmsg_len - CMSG_LEN (0)) / 8 - 1; in option_alloc()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-scm_rights.c73 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in subprocess()
75 mmhdr.msg_hdr.msg_controllen = cmsg->cmsg_len; in subprocess()
132 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in one_test()
133 mmhdr.msg_hdr.msg_controllen = cmsg->cmsg_len; in one_test()
150 TEST_COMPARE (CMSG_FIRSTHDR (&mmhdr.msg_hdr)->cmsg_len, in one_test()
Dcmsg_nxthdr.c26 if ((size_t) cmsg->cmsg_len < sizeof (struct cmsghdr)) in __cmsg_nxthdr()
31 + CMSG_ALIGN (cmsg->cmsg_len)); in __cmsg_nxthdr()
34 || ((unsigned char *) cmsg + CMSG_ALIGN (cmsg->cmsg_len) in __cmsg_nxthdr()
Dtst-socket-timestamp.c115 && cmsg->cmsg_len == CMSG_LEN (sizeof (struct timeval))) in do_recvmsg_slack_ancillary()
125 && cmsg->cmsg_len == CMSG_LEN (sizeof (struct timespec))) in do_recvmsg_slack_ancillary()
243 && cmsg->cmsg_len >= CMSG_LEN (sizeof (struct sockaddr_in))) in do_recvmsg_multiple_ancillary()
258 && cmsg->cmsg_len >= CMSG_LEN (sizeof (struct timeval))) in do_recvmsg_multiple_ancillary()
Dconvert_scm_timestamps.c99 cmsg->cmsg_len = CMSG_LEN (sizeof tvts); in __convert_scm_timestamps()
Dtst-getcwd-smallbuff.c72 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in send_fd()
/glibc-2.36/sysdeps/mach/hurd/bits/
Dsocket.h224 socklen_t cmsg_len; /* Length of data in cmsg_data plus length member
261 if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) in __NTH()
266 + CMSG_ALIGN (__cmsg->cmsg_len)); in __NTH()
269 || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len) in __NTH()
/glibc-2.36/bits/
Dsocket.h220 socklen_t cmsg_len; /* Length of data in cmsg_data plus length member
257 if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) in __NTH()
262 + CMSG_ALIGN (__cmsg->cmsg_len)); in __NTH()
265 || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len) in __NTH()
/glibc-2.36/sysdeps/unix/sysv/linux/bits/
Dsocket.h282 size_t cmsg_len; /* Length of data in cmsg_data plus length member
319 if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) in __NTH()
324 + CMSG_ALIGN (__cmsg->cmsg_len)); in __NTH()
327 || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len) in __NTH()
/glibc-2.36/sysdeps/mach/hurd/
Dsendmsg.c114 nports += (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr))) in __libc_sendmsg()
129 nfds = (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr))) in __libc_sendmsg()
Drecvmsg.c194 nfds = (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr))) in __libc_recvmsg()
235 nfds = (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr))) in __libc_recvmsg()
/glibc-2.36/nscd/
Dnscd_helper.c294 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in __nscd_get_mapping()
300 msg.msg_controllen = cmsg->cmsg_len; in __nscd_get_mapping()
311 || (CMSG_FIRSTHDR (&msg)->cmsg_len in __nscd_get_mapping()
Dconnections.c1023 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in send_ro_fd()
1028 msg.msg_controllen = cmsg->cmsg_len; in send_ro_fd()
/glibc-2.36/conform/data/sys/
Dsocket.h-data38 // Bug 16919: wrong type for cmsg_len member.
39 xfail-element {struct cmsghdr} socklen_t cmsg_len
/glibc-2.36/sunrpc/
Dsvc_unix.c390 cmsg->cmsg_len = sizeof(*cmsg) + sizeof(struct ucred); in __msgwrite()
400 msg.msg_controllen = CMSG_ALIGN(cmsg->cmsg_len); in __msgwrite()
Dclnt_unix.c504 cmsg->cmsg_len = sizeof(*cmsg) + sizeof(struct ucred); in __msgwrite()
514 msg.msg_controllen = CMSG_ALIGN(cmsg->cmsg_len); in __msgwrite()
Dsvc_udp.c270 || cmsg->cmsg_len < (sizeof (struct cmsghdr) in svcudp_recv()
/glibc-2.36/ChangeLog.old/
DChangeLog.16772 (struct cmsghdr): Same for cmsg_len.
DChangeLog.1820375 (cmsghdr.cmsg_len): Likewise.
20392 (cmsghdr.cmsg_len): Likewise.
21344 (cmsghdr.cmsg_len): Likewise.
21350 (cmsghdr.cmsg_len): Likewise.
35651 (cmsghdr.cmsg_len): Likewise.