Home
last modified time | relevance | path

Searched refs:MSG_TRUNC (Results 1 – 25 of 54) sorted by relevance

123

/external/strace/xlat/
Dmsg_flags.h41 #if defined(MSG_TRUNC) || (defined(HAVE_DECL_MSG_TRUNC) && HAVE_DECL_MSG_TRUNC)
43 static_assert((MSG_TRUNC) == (0x20), "MSG_TRUNC != 0x20");
46 # define MSG_TRUNC 0x20
190 XLAT(MSG_TRUNC),
Dmsg_flags.in7 MSG_TRUNC 0x20
/external/iptables/include/libipulog/
Dlibipulog.h18 #ifndef MSG_TRUNC
19 #define MSG_TRUNC 0x20 macro
/external/iptables/include/libipq/
Dlibipq.h44 #ifndef MSG_TRUNC
45 #define MSG_TRUNC 0x20 macro
/external/dnsmasq/src/
Dnetlink.c86 … while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR) in netlink_recv()
90 if (rc != -1 && (msg.msg_flags & MSG_TRUNC)) { in netlink_recv()
109 if (msg.msg_flags & MSG_TRUNC) { in netlink_recv()
Ddhcp.c116 while ((sz = recvmsg(daemon->dhcpfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR) in dhcp_packet()
121 if (!(msg.msg_flags & MSG_TRUNC)) break; in dhcp_packet()
144 if ((msg.msg_flags & MSG_TRUNC) || sz < (ssize_t)(sizeof(*mess) - sizeof(mess->options))) in dhcp_packet()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_rx.c168 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
231 ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT); in recv_msg()
256 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp()
Dipv6_flowlabel.c97 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
Dmsg_zerocopy.c610 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
629 ret = recv(fd, buf, sizeof(buf), MSG_DONTWAIT | MSG_TRUNC); in do_flush_datagram()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Drecv_msg_trunc.cc31 assert(recv(fd_1, buf, 1, MSG_TRUNC) != -1); in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Drecv_msg_trunc.cpp31 assert(recv(fd_1, buf, 1, MSG_TRUNC) != -1); in main()
/external/python/cpython2/Lib/plat-os2emx/
DSOCKET.py87 MSG_TRUNC = 0x10 variable
/external/iproute2/lib/
Dlibnetlink.c497 if (msg.msg_flags & MSG_TRUNC) { in rtnl_dump_filter_l()
588 if (msg.msg_flags & MSG_TRUNC) { in __rtnl_talk()
639 if (msg.msg_flags & MSG_TRUNC) { in __rtnl_talk()
753 if (msg.msg_flags & MSG_TRUNC) { in rtnl_listen()
770 if (msg.msg_flags & MSG_TRUNC) { in rtnl_listen()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs575 assert!(!msg.flags.intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC)); in test_scm_rights()
878 assert!(!msg.flags.intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC)); in test_scm_rights_single_cmsg_multiple_fds()
932 assert!(!msg.flags.intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC)); in test_sendmsg_empty_cmsgs()
995 assert!(!msg.flags.intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC)); in test_scm_credentials()
1087 assert!(!msg.flags.intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC)); in test_impl_scm_credentials_and_rights()
1266 .intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC) in test_recv_ipv4pktinfo()
1357 .intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC) in test_recvif()
1467 .intersects(MsgFlags::MSG_TRUNC | MsgFlags::MSG_CTRUNC) in test_recv_ipv6pktinfo()
/external/iputils/ninfod/
Dni_ifaddrs.c154 || (msg.msg_flags & MSG_TRUNC)) in nl_recvmsg()
180 if (read_size < 0 || (msg_flags & MSG_TRUNC)) { in nl_getmsg()
/external/selinux/libselinux/src/
Davc_internal.c149 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > (unsigned)rc) { in avc_netlink_receive()
/external/libnfnetlink/src/
Dlibnfnetlink.c697 if (msg.msg_flags & MSG_TRUNC) { in nfnl_listen()
726 if (msg.msg_flags & MSG_TRUNC) { in nfnl_listen()
815 if (msg.msg_flags & MSG_TRUNC) { in nfnl_talk()
858 if (msg.msg_flags & MSG_TRUNC) { in nfnl_talk()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc226 msg.msg_flags & ~MSG_TRUNC) in ClientEvent()
/external/libpcap/
Dpcap-haiku.cpp68 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku()
/external/libchrome/base/posix/
Dunix_domain_socket.cc191 if (msg.msg_flags & MSG_TRUNC || msg.msg_flags & MSG_CTRUNC) { in RecvMsgWithFlags()
/external/libusb/libusb/os/
Dlinux_netlink.c308 if (len < 32 || (msg.msg_flags & MSG_TRUNC)) { in linux_netlink_read_message()
/external/libnl/lib/
Dnl.c680 flags |= MSG_PEEK | MSG_TRUNC; in nl_recv()
739 if (iov.iov_len < n || (msg.msg_flags & MSG_TRUNC)) { in nl_recv()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c199 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
/external/iptables/libipq/
Dlibipq.c186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { in ipq_netlink_recvfrom()
/external/crosvm/sys_util/src/
Dnet.rs22 socklen_t, AF_INET, AF_INET6, MSG_PEEK, MSG_TRUNC, SOCK_CLOEXEC, SOCK_STREAM,
438 MSG_TRUNC | MSG_PEEK, in next_packet_size()

123