Home
last modified time | relevance | path

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

123

/Linux-v6.6/net/phonet/
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()
Dpep.c1246 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
1285 msg->msg_flags |= MSG_TRUNC; in pep_recvmsg()
1291 err = (flags & MSG_TRUNC) ? skb->len : len; in pep_recvmsg()
/Linux-v6.6/tools/testing/selftests/net/
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()
Dipv6_flowlabel.c122 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
Dmsg_zerocopy.c609 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
628 ret = recv(fd, buf, sizeof(buf), MSG_DONTWAIT | MSG_TRUNC); in do_flush_datagram()
Drxtimestamp.c204 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
/Linux-v6.6/net/smc/
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()
/Linux-v6.6/net/mctp/
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()
/Linux-v6.6/net/ieee802154/
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()
/Linux-v6.6/net/l2tp/
Dl2tp_ip.c537 msg->msg_flags |= MSG_TRUNC; in l2tp_ip_recvmsg()
557 if (flags & MSG_TRUNC) in l2tp_ip_recvmsg()
Dl2tp_ip6.c678 msg->msg_flags |= MSG_TRUNC; in l2tp_ip6_recvmsg()
704 if (flags & MSG_TRUNC) in l2tp_ip6_recvmsg()
/Linux-v6.6/net/sunrpc/
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()
/Linux-v6.6/tools/testing/vsock/
Dvsock_test.c359 MSG_TRUNC); in test_msg_peek_server()
585 ssize_t ret = recvmsg(fd, &msg, MSG_TRUNC); in test_seqpacket_msg_trunc_server()
593 if (!(msg.msg_flags & MSG_TRUNC)) { in test_seqpacket_msg_trunc_server()
/Linux-v6.6/net/xfrm/
Despintcp.c154 msg->msg_flags |= MSG_TRUNC; in espintcp_recvmsg()
162 if (flags & MSG_TRUNC) in espintcp_recvmsg()
/Linux-v6.6/net/bluetooth/
Daf_bluetooth.c323 msg->msg_flags |= MSG_TRUNC; in bt_sock_recvmsg()
346 if (flags & MSG_TRUNC) in bt_sock_recvmsg()
/Linux-v6.6/net/ipv6/
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()
/Linux-v6.6/net/rds/
Drecv.c711 if (msg_flags & MSG_TRUNC) in rds_recvmsg()
713 msg->msg_flags |= MSG_TRUNC; in rds_recvmsg()
/Linux-v6.6/drivers/net/
Dtap.c1258 if (flags & ~(MSG_DONTWAIT|MSG_TRUNC)) { in tap_recvmsg()
1264 m->msg_flags |= MSG_TRUNC; in tap_recvmsg()
1265 ret = flags & MSG_TRUNC ? ret : total_len; in tap_recvmsg()
/Linux-v6.6/include/linux/
Dsocket.h309 #define MSG_TRUNC 0x20 macro
/Linux-v6.6/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c156 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) { in cmsg_check()
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h309 #define MSG_TRUNC 0x20 macro
/Linux-v6.6/net/nfc/
Drawsock.c257 msg->msg_flags |= MSG_TRUNC; in rawsock_recvmsg()
/Linux-v6.6/crypto/
Dalgif_hash.c191 msg->msg_flags |= MSG_TRUNC; in hash_recvmsg()
/Linux-v6.6/net/dccp/
Dproto.c899 msg->msg_flags |= MSG_TRUNC; in dccp_recvmsg()
906 if (flags & MSG_TRUNC) in dccp_recvmsg()
/Linux-v6.6/net/caif/
Dcaif_socket.c284 m->msg_flags |= MSG_TRUNC; in caif_seqpkt_recvmsg()
292 ret = (flags & MSG_TRUNC) ? skb->len : copylen; in caif_seqpkt_recvmsg()

123