Home
last modified time | relevance | path

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

12

/external/strace/
Dnet.c309 uint32_t cmsg_len; member
549 size_t cmsg_len = in printcmsghdr() local
551 (current_wordsize < sizeof(long)) ? u.cmsg32->cmsg_len : in printcmsghdr()
553 u.cmsg->cmsg_len; in printcmsghdr()
567 tprintf("{cmsg_len=%lu, cmsg_level=", (unsigned long) cmsg_len); in printcmsghdr()
571 if (cmsg_len > len) in printcmsghdr()
572 cmsg_len = len; in printcmsghdr()
576 cmsg_len > cmsg_size ? cmsg_len - cmsg_size: 0); in printcmsghdr()
579 if (cmsg_len < cmsg_size) { in printcmsghdr()
583 cmsg_len = (cmsg_len + current_wordsize - 1) & in printcmsghdr()
[all …]
/external/iproute2/include/
Dbpf_scm.h55 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init()
72 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init_single()
/external/libchrome/base/posix/
Dunix_domain_socket_linux.cc70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendMsg()
72 msg.msg_controllen = cmsg->cmsg_len; in SendMsg()
140 const unsigned payload_len = cmsg->cmsg_len - CMSG_LEN(0); in RecvMsgWithFlags()
/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/strace/tests/
Dinet-cmsg.c66 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
163 c->cmsg_len); in main()
Dscm_rights.c75 control.cmsg.cmsg_len = CMSG_LEN(sizeof(fds)); in main()
/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/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_client.cc71 hdr->cmsg_len = CMSG_LEN(sizeof(int)); in RequestDump()
Dcrash_generation_server.cc234 const unsigned len = hdr->cmsg_len - in ClientEvent()
/external/iputils/
Dping6.c210 cmsg->cmsg_len = sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0); in inet6_srcrt_init()
223 cmsg->cmsg_len += sizeof(struct in6_addr); in inet6_srcrt_add()
848 srcrt->cmsg_len = CMSG_LEN(space); in main()
1048 cmsg->cmsg_len = CMSG_LEN(sizeof(*ipi)); in main()
1212 freq_len = CMSG_ALIGN(sizeof(*freq)) + srcrt->cmsg_len; in main()
1222 memcpy(freq_buf + CMSG_ALIGN(sizeof(*freq)), srcrt, srcrt->cmsg_len); in main()
1605 if (c->cmsg_len < CMSG_LEN(sizeof(int))) in parse_reply()
Dping.c111 int cmsg_len; variable
439 cmsg_len = sizeof(cmsg); in main()
759 m.msg_controllen = cmsg_len; in send_probe()
818 if (cmsg->cmsg_len < sizeof(int)) in parse_reply()
823 optlen = cmsg->cmsg_len; in parse_reply()
Dping_common.c837 if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval))) in main_loop()
/external/avahi/avahi-core/
Dsocket.c521 cmsg->cmsg_len = msg.msg_controllen; in avahi_send_dns_packet_ipv4()
550 cmsg->cmsg_len = msg.msg_controllen; in avahi_send_dns_packet_ipv4()
607 cmsg->cmsg_len = msg.msg_controllen; in avahi_send_dns_packet_ipv6()
/external/iputils/ninfod/
Dninfod.c360 cmsg->cmsg_len = CMSG_LEN(sizeof(p->pktinfo)); in ni_send()
363 msgh.msg_controllen = cmsg->cmsg_len; in ni_send()
/external/iproute2/examples/bpf/
Dbpf_agent.c193 min_fd = (cmsg->cmsg_len - sizeof(*cmsg)) / sizeof(fd); in bpf_map_set_recv()
/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()
972 const unsigned len = hdr->cmsg_len - in TEST()
/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/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_posix.h409 unsigned cmsg_len; member
424 uptr cmsg_len; member
/external/dbus/dbus/
Ddbus-sysdeps-unix.c357 _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/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/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()
/external/iproute2/lib/
Dlibnetlink.c527 cmsg->cmsg_len == CMSG_LEN(sizeof(int))) { in rtnl_listen()

12