Home
last modified time | relevance | path

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

/external/kernel-headers/original/linux/
Dsocket.h74 __kernel_size_t cmsg_len; /* data byte count, including hdr */ member
97 #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()
/external/valgrind/main/none/tests/
Dfdleak_cmsg.c70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * 2); in server()
134 cmsg->cmsg_len == CMSG_LEN(sizeof(int) * 2)) { in client()
/external/strace/
Dnet.c1093 tprintf(", {cmsg_len=%zu, cmsg_level=", cmsg->cmsg_len);
1098 unsigned long cmsg_len; local
1101 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) {
DChangeLog92 trust cmsg.cmsg_len to avoid read beyond the end of allocated
/external/ping6/
Dping6.c867 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()
/external/webkit/Source/WebKit2/Platform/CoreIPC/unix/
DConnectionUnix.cpp363 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * attachments.size()); in sendOutgoingMessage()
371 message.msg_controllen = cmsg->cmsg_len; in sendOutgoingMessage()
/external/ping/
Dping.c684 if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval))) in main_loop()
961 int cmsg_len; variable
1114 m.msg_controllen = cmsg_len; in send_probe()
1948 cmsg_len = sizeof(cmsg); in main()
/external/dbus/dbus/
Ddbus-sysdeps-unix.c337 _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()
/external/dnsmasq/src/
Dforward.c71 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()
Ddhcp.c298 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in dhcp_packet()
/external/chromium/chrome/browser/
Dcrash_handler_host_linux.cc191 const unsigned len = hdr->cmsg_len - in OnFileCanReadWithoutBlocking()
/external/ipsec-tools/src/racoon/
Dsockmisc.c484 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
544 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
Dprivsep.c1609 cmsg->cmsg_len = CMSG_LEN(sizeof(fd));
1612 msg.msg_controllen = cmsg->cmsg_len;
/external/valgrind/main/include/vki/
Dvki-linux.h600 __vki_kernel_size_t cmsg_len; /* data byte count, including hdr */ member
623 __ptr = (struct vki_cmsghdr*)(((unsigned char *) __cmsg) + VKI_CMSG_ALIGN(__cmsg->cmsg_len)); in __vki_cmsg_nxthdr()
/external/bluetooth/bluez/audio/
Dunix.c158 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in unix_sendmsg_fd()
/external/qemu/
Dqemu-char.c2077 if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)) || in unix_process_msgfd()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-generic.c917 Int fdc = (cm->cmsg_len - VKI_CMSG_ALIGN(sizeof(struct vki_cmsghdr))) in check_cmsg_for_fds()