Home
last modified time | relevance | path

Searched refs:CMSG_LEN (Results 1 – 25 of 26) sorted by relevance

12

/external/strace/tests/
Dscm_rights.c70 char buf[CMSG_LEN(sizeof(fds))]; in main()
75 control.cmsg.cmsg_len = CMSG_LEN(sizeof(fds)); in main()
/external/avahi/avahi-daemon/
Dchroot.c136 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int)); in send_fd()
176 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int)); in recv_fd()
198 assert(h->cmsg_len = CMSG_LEN(sizeof(int))); in recv_fd()
/external/valgrind/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/libchrome/base/posix/
Dunix_domain_socket_linux.cc70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendMsg()
140 const unsigned payload_len = cmsg->cmsg_len - CMSG_LEN(0); in RecvMsgWithFlags()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_client.cc71 hdr->cmsg_len = CMSG_LEN(sizeof(int)); in RequestDump()
/external/iproute2/include/
Dbpf_scm.h67 msg->hdr.msg_controllen = CMSG_LEN(sizeof(int) * num); in bpf_map_set_init_single()
/external/avahi/avahi-core/
Dsocket.c518 msg.msg_controllen = CMSG_LEN(sizeof(struct in_pktinfo)); in avahi_send_dns_packet_ipv4()
547 msg.msg_controllen = CMSG_LEN(sizeof(struct in_addr)); in avahi_send_dns_packet_ipv4()
604 msg.msg_controllen = CMSG_LEN(sizeof(struct in6_pktinfo)); in avahi_send_dns_packet_ipv6()
/external/dbus/dbus/
Ddbus-sysdeps-unix.c120 # ifndef CMSG_LEN
121 # define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) macro
357 _dbus_assert(cm->cmsg_len <= CMSG_LEN(*n_fds * sizeof(int))); in _dbus_read_socket_with_unix_fds()
358 *n_fds = (cm->cmsg_len - CMSG_LEN(0)) / sizeof(int); in _dbus_read_socket_with_unix_fds()
464 cm->cmsg_len = CMSG_LEN(n_fds * sizeof(int)); in _dbus_write_socket_with_unix_fds_two()
1619 cmsg.hdr.cmsg_len = CMSG_LEN (sizeof (struct cmsgcred)); in write_credentials_byte()
1781 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/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc335 int n = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(fds[0]); in ExtractRecvmsgFDs()
/external/mdnsresponder/mDNSShared/
Ddnssd_clientstub.c690 #undef CMSG_LEN in deliver_request()
691 #define CMSG_LEN(l) ((sizeof(struct cmsghdr)) + (l)) in deliver_request()
719 msg.msg_controllen = CMSG_LEN(sizeof(dnssd_sock_t)); in deliver_request()
722 cmsg->cmsg_len = CMSG_LEN(sizeof(dnssd_sock_t)); in deliver_request()
735 CMSG_LEN(sizeof(dnssd_sock_t)), (long)CMSG_SPACE(sizeof(dnssd_sock_t)), in deliver_request()
/external/iputils/
Dping6.c848 srcrt->cmsg_len = CMSG_LEN(space); in main()
1048 cmsg->cmsg_len = CMSG_LEN(sizeof(*ipi)); in main()
1605 if (c->cmsg_len < CMSG_LEN(sizeof(int))) in parse_reply()
Dping_common.c837 if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval))) in main_loop()
/external/ipsec-tools/src/racoon/
Dsockmisc.c596 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
656 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
/external/libnl/lib/
Dnl.c265 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in nl_send_iovec()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc906 hdr->cmsg_len = CMSG_LEN(sizeof(int)); in CrashHandler()
911 hdr->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in CrashHandler()
/external/iputils/ninfod/
Dninfod.c360 cmsg->cmsg_len = CMSG_LEN(sizeof(p->pktinfo)); in ni_send()
/external/dhcpcd-6.8.2/
Dipv6nd.c293 cm->cmsg_len = CMSG_LEN(sizeof(pi)); in ipv6nd_sendrsprobe()
1669 if (cm->cmsg_len == CMSG_LEN(sizeof(pkt))) in ipv6nd_handledata()
1673 if (cm->cmsg_len == CMSG_LEN(sizeof(int))) in ipv6nd_handledata()
Dif-linux.c1245 unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))]; in if_readrawpacket()
Ddhcp6.c1154 cm->cmsg_len = CMSG_LEN(sizeof(pi)); in dhcp6_sendmessage()
2649 if (cm->cmsg_len == CMSG_LEN(sizeof(pkt))) in dhcp6_handledata()
/external/iproute2/lib/
Dlibnetlink.c527 cmsg->cmsg_len == CMSG_LEN(sizeof(int))) { in rtnl_listen()
/external/dbus/
DNEWS287 · Define CMSG_ALIGN, CMSG_LEN, CMSG_SPACE on Solaris < 10
/external/libpcap/
Dpcap-linux.c1727 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct tpacket_auxdata)) ||
/external/netperf/src/
Dnettest_omni.c2864 cmsg->cmsg_len = CMSG_LEN(sizeof(in_pktinfo)); in send_pktinfo()

12