Home
last modified time | relevance | path

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

/freebsd/tests/sys/kern/
H A Dsocket_msg_trunc.c61 rc = recv(ss, NULL, 0, MSG_PEEK | MSG_TRUNC); in check_recvmsg()
65 rc = recv(ss, tbuf, sizeof(tbuf), MSG_PEEK | MSG_TRUNC); in check_recvmsg()
69 rc = recv(ss, tbuf, sizeof(tbuf), MSG_TRUNC); in check_recvmsg()
191 nbytes = recvmsg(sd[1], &msg, MSG_TRUNC); in ATF_TC_BODY()
194 ATF_REQUIRE((msg.msg_flags & MSG_TRUNC) != 0); in ATF_TC_BODY()
H A Dunix_dgram.c125 ATF_REQUIRE(msg.msg_flags == (MSG_PEEK | MSG_TRUNC)); in ATF_TC_BODY()
136 ATF_REQUIRE(msg.msg_flags == MSG_TRUNC); in ATF_TC_BODY()
H A Dunix_passfd_test.c253 ATF_REQUIRE_MSG((msghdr.msg_flags & MSG_TRUNC) == 0, in recvfd_payload()
/freebsd/tests/sys/netinet/
H A Dudp_io.c86 ATF_REQUIRE(msg.msg_flags == MSG_TRUNC); in ATF_TC_BODY()
123 ATF_REQUIRE(msg.msg_flags == (MSG_PEEK | MSG_TRUNC)); in ATF_TC_BODY()
/freebsd/tests/sys/netlink/
H A Dnetlink_socket.c156 ss = recv(fd, buf, 0, MSG_WAITALL | MSG_PEEK | MSG_TRUNC); in ATF_TC_BODY()
218 ss = recvmsg(fd, &msg, MSG_WAITALL | MSG_PEEK | MSG_TRUNC); in ATF_TC_BODY()
240 ATF_REQUIRE(msg.msg_flags & MSG_TRUNC); in ATF_TC_BODY()
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/
H A Dplatform.h39 #undef MSG_TRUNC
H A Dnet.h139 #ifndef MSG_TRUNC
/freebsd/contrib/ntp/libntp/lib/isc/unix/include/isc/
H A Dnet.h231 #ifndef MSG_TRUNC
/freebsd/contrib/libpcap/
H A Dpcap-haiku.cpp67 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku()
H A Dsockutils.c1622 if (message.msg_flags & MSG_TRUNC) in sock_recv_dgram()
H A Dpcap-linux.c5481 while (recv(handle->fd, &drain, sizeof drain, MSG_TRUNC) >= 0) in set_kernel_filter()
/freebsd/sys/netlink/
H A Dnetlink_domain.c689 flags = flagsp != NULL ? *flagsp & ~MSG_TRUNC : 0; in nl_soreceive()
690 trunc = flagsp != NULL ? *flagsp & MSG_TRUNC : false; in nl_soreceive()
759 flags |= MSG_TRUNC; in nl_soreceive()
/freebsd/sys/sys/
H A Dsocket.h448 #define MSG_TRUNC 0x00000010 /* data discarded before delivery */ macro
/freebsd/contrib/bsnmp/snmpd/
H A Dtrans_udp.c315 if (msg.msg_flags & MSG_TRUNC) { in udp_recv()
H A Dtrans_inet.c330 if (msg->msg_flags & MSG_TRUNC) { in inet_read_msg()
/freebsd/sys/kern/
H A Duipc_usrreq.c1401 if (*flagsp & MSG_TRUNC) { in uipc_peek_dgram()
1405 *flagsp |= MSG_TRUNC; in uipc_peek_dgram()
1407 *flagsp &= ~MSG_TRUNC; in uipc_peek_dgram()
1569 if (flags & MSG_TRUNC) { in uipc_soreceive_dgram()
1573 *flagsp |= MSG_TRUNC; in uipc_soreceive_dgram()
1577 *flagsp &= ~MSG_TRUNC; in uipc_soreceive_dgram()
H A Duipc_socket.c2092 report_real_len = *flagsp & MSG_TRUNC;
2093 *flagsp &= ~MSG_TRUNC;
2518 flags |= MSG_TRUNC;
2816 if (mp0 != NULL || (flags & (MSG_PEEK | MSG_OOB | MSG_TRUNC)))
2964 flags |= MSG_TRUNC;
/freebsd/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c319 if ((read_len < 0 && errno == EINTR) || (msg.msg_flags & MSG_TRUNC)) in nl_recvmsg()
346 if (read_size < 0 || (msg_flags & MSG_TRUNC)){ in nl_getmsg()
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_slirp.c601 n = recv(priv->pipe[0], NULL, 0, MSG_PEEK | MSG_DONTWAIT | MSG_TRUNC); in slirp_peek_recvlen()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Duc_common.c401 if (msghdr->msg_flags & MSG_TRUNC) { in uc_check_msghdr()
/freebsd/sys/netgraph/
H A Dng_ksocket.c1099 if (flags & MSG_TRUNC) { in ng_ksocket_incoming2()
/freebsd/contrib/wpa/src/radius/
H A Dradius_client.c857 if (msghdr.msg_flags & MSG_TRUNC) { in radius_client_receive()
/freebsd/sys/compat/linux/
H A Dlinux_socket.c616 ret_flags |= MSG_TRUNC; in linux_to_bsd_msg_flags()
/freebsd/sys/netinet/
H A Dsctputil.c6302 out_flags |= MSG_TRUNC; in sctp_sorecvmsg()
6329 out_flags |= MSG_TRUNC; in sctp_sorecvmsg()