Home
last modified time | relevance | path

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

123

/openbmc/linux/net/phonet/
H A Ddatagram.c119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL| in pn_recvmsg()
131 msg->msg_flags |= MSG_TRUNC; in pn_recvmsg()
141 rval = (flags & MSG_TRUNC) ? skb->len : copylen; in pn_recvmsg()
H A Dpep.c1269 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
1308 msg->msg_flags |= MSG_TRUNC; in pep_recvmsg()
1314 err = (flags & MSG_TRUNC) ? skb->len : len; in pep_recvmsg()
/openbmc/linux/tools/testing/selftests/net/
H A Dudpgso_bench_rx.c171 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
233 ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT); in recv_msg()
257 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp()
H A Dipv6_flowlabel.c122 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
H A Dmsg_zerocopy.c616 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
635 ret = recv(fd, buf, sizeof(buf), MSG_DONTWAIT | MSG_TRUNC); in do_flush_datagram()
H A Drxtimestamp.c204 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
/openbmc/libpldm/src/transport/
H A Daf-mctp.c122 length = recv(af_mctp->socket, NULL, 0, MSG_PEEK | MSG_TRUNC); in pldm_transport_af_mctp_recv()
132 length = recvfrom(af_mctp->socket, msg, length, MSG_TRUNC, in pldm_transport_af_mctp_recv()
H A Dmctp-demux.c148 length = recv(demux->socket, NULL, 0, MSG_PEEK | MSG_TRUNC); in pldm_transport_mctp_demux_recv()
/openbmc/linux/net/smc/
H A Dsmc_rx.c300 if (!(flags & MSG_TRUNC)) in smc_rx_recv_urg()
313 msg->msg_flags |= MSG_TRUNC; in smc_rx_recv_urg()
465 if (!(flags & MSG_TRUNC)) { in smc_rx_recvmsg()
/openbmc/linux/net/mctp/
H A Daf_mctp.c216 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK)) in mctp_recvmsg()
233 msg->msg_flags |= MSG_TRUNC; in mctp_recvmsg()
273 if (flags & MSG_TRUNC) in mctp_recvmsg()
/openbmc/linux/net/ieee802154/
H A Dsocket.c328 msg->msg_flags |= MSG_TRUNC; in raw_recvmsg()
338 if (flags & MSG_TRUNC) in raw_recvmsg()
720 msg->msg_flags |= MSG_TRUNC; in dgram_recvmsg()
750 if (flags & MSG_TRUNC) in dgram_recvmsg()
/openbmc/linux/net/l2tp/
H A Dl2tp_ip.c537 msg->msg_flags |= MSG_TRUNC; in l2tp_ip_recvmsg()
557 if (flags & MSG_TRUNC) in l2tp_ip_recvmsg()
H A Dl2tp_ip6.c678 msg->msg_flags |= MSG_TRUNC; in l2tp_ip6_recvmsg()
704 if (flags & MSG_TRUNC) in l2tp_ip6_recvmsg()
/openbmc/linux/tools/testing/vsock/
H A Dvsock_test.c359 MSG_TRUNC); in test_msg_peek_server()
592 ssize_t ret = recvmsg(fd, &msg, MSG_TRUNC); in test_seqpacket_msg_trunc_server()
600 if (!(msg.msg_flags & MSG_TRUNC)) { in test_seqpacket_msg_trunc_server()
/openbmc/linux/net/sunrpc/
H A Dxprtsock.c473 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
496 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
512 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
584 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_request()
633 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_call()
659 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_reply()
668 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_reply()
702 msg.msg_flags |= MSG_TRUNC; in xs_read_stream()
710 if (msg.msg_flags & MSG_TRUNC) { in xs_read_stream()
718 if (!(msg.msg_flags & MSG_TRUNC)) in xs_read_stream()
/openbmc/linux/net/xfrm/
H A Despintcp.c154 msg->msg_flags |= MSG_TRUNC; in espintcp_recvmsg()
162 if (flags & MSG_TRUNC) in espintcp_recvmsg()
/openbmc/linux/net/bluetooth/
H A Daf_bluetooth.c323 msg->msg_flags |= MSG_TRUNC; in bt_sock_recvmsg()
346 if (flags & MSG_TRUNC) in bt_sock_recvmsg()
/openbmc/linux/net/ipv6/
H A Draw.c451 msg->msg_flags |= MSG_TRUNC; in rawv6_recvmsg()
456 } else if (msg->msg_flags&MSG_TRUNC) { in rawv6_recvmsg()
485 if (flags & MSG_TRUNC) in rawv6_recvmsg()
/openbmc/linux/net/rds/
H A Drecv.c715 if (msg_flags & MSG_TRUNC) in rds_recvmsg()
717 msg->msg_flags |= MSG_TRUNC; in rds_recvmsg()
/openbmc/linux/drivers/net/
H A Dtap.c1263 if (flags & ~(MSG_DONTWAIT|MSG_TRUNC)) { in tap_recvmsg()
1269 m->msg_flags |= MSG_TRUNC; in tap_recvmsg()
1270 ret = flags & MSG_TRUNC ? ret : total_len; in tap_recvmsg()
/openbmc/linux/tools/testing/selftests/net/af_unix/
H A Dscm_pidfd.c156 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) { in cmsg_check()
/openbmc/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h309 #define MSG_TRUNC 0x20 macro
/openbmc/linux/include/linux/
H A Dsocket.h309 #define MSG_TRUNC 0x20 macro
/openbmc/linux/net/nfc/
H A Drawsock.c257 msg->msg_flags |= MSG_TRUNC; in rawsock_recvmsg()
/openbmc/linux/crypto/
H A Dalgif_hash.c192 msg->msg_flags |= MSG_TRUNC; in hash_recvmsg()

123