Searched refs:cmsg_len (Results 1 – 17 of 17) sorted by relevance
74 __kernel_size_t cmsg_len; /* data byte count, including hdr */ member97 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \98 (cmsg)->cmsg_len <= (unsigned long) \135 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * 2); in server()134 cmsg->cmsg_len == CMSG_LEN(sizeof(int) * 2)) { in client()
1093 tprintf(", {cmsg_len=%zu, cmsg_level=", cmsg->cmsg_len);1098 unsigned long cmsg_len; local1101 cmsg_len = (len < cmsg->cmsg_len) ? len : cmsg->cmsg_len;1104 && CMSG_LEN(sizeof(int)) <= cmsg_len) {1109 while ((char *) fds < ((char *) cmsg + cmsg_len)) {1120 && CMSG_LEN(sizeof(struct ucred)) <= cmsg_len) {
92 trust cmsg.cmsg_len to avoid read beyond the end of allocated
867 scmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in main()885 scmsgp->cmsg_len = CMSG_LEN(sizeof(int)); in main()894 scmsgp->cmsg_len = CMSG_LEN(0); in main()908 scmsgp->cmsg_len = CMSG_LEN(rthdrlen); in main()2015 if (cm->cmsg_len == 0) in get_hoplim()2020 cm->cmsg_len == CMSG_LEN(sizeof(int))) in get_hoplim()2034 if (cm->cmsg_len == 0) in get_rcvpktinfo()2039 cm->cmsg_len == CMSG_LEN(sizeof(struct in6_pktinfo))) in get_rcvpktinfo()2055 if (cm->cmsg_len == 0) in get_pathmtu()2060 cm->cmsg_len == CMSG_LEN(sizeof(struct ip6_mtuinfo))) { in get_pathmtu()
363 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * attachments.size()); in sendOutgoingMessage()371 message.msg_controllen = cmsg->cmsg_len; in sendOutgoingMessage()
684 if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval))) in main_loop()961 int cmsg_len; variable1114 m.msg_controllen = cmsg_len; in send_probe()1948 cmsg_len = sizeof(cmsg); in main()
337 _dbus_assert(cm->cmsg_len <= CMSG_LEN(*n_fds * sizeof(int))); in _dbus_read_socket_with_unix_fds()338 *n_fds = (cm->cmsg_len - CMSG_LEN(0)) / sizeof(int); in _dbus_read_socket_with_unix_fds()444 cm->cmsg_len = CMSG_LEN(n_fds * sizeof(int)); in _dbus_write_socket_with_unix_fds_two()1519 cmsg.hdr.cmsg_len = CMSG_LEN (sizeof (struct cmsgcred)); in write_credentials_byte()1673 if (cmsg.hdr.cmsg_len < CMSG_LEN (sizeof (struct cmsgcred)) in _dbus_read_credentials_socket()
71 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in send_from()77 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in send_from()88 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in send_from()
298 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in dhcp_packet()
191 const unsigned len = hdr->cmsg_len - in OnFileCanReadWithoutBlocking()
484 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));544 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
1609 cmsg->cmsg_len = CMSG_LEN(sizeof(fd));1612 msg.msg_controllen = cmsg->cmsg_len;
600 __vki_kernel_size_t cmsg_len; /* data byte count, including hdr */ member623 __ptr = (struct vki_cmsghdr*)(((unsigned char *) __cmsg) + VKI_CMSG_ALIGN(__cmsg->cmsg_len)); in __vki_cmsg_nxthdr()
158 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in unix_sendmsg_fd()
2077 if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)) || in unix_process_msgfd()
917 Int fdc = (cm->cmsg_len - VKI_CMSG_ALIGN(sizeof(struct vki_cmsghdr))) in check_cmsg_for_fds()