Home
last modified time | relevance | path

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

123

/Linux-v5.15/net/phonet/
Ddatagram.c122 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL| in pn_recvmsg()
134 msg->msg_flags |= MSG_TRUNC; in pn_recvmsg()
144 rval = (flags & MSG_TRUNC) ? skb->len : copylen; in pn_recvmsg()
Dpep.c1243 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
1282 msg->msg_flags |= MSG_TRUNC; in pep_recvmsg()
1288 err = (flags & MSG_TRUNC) ? skb->len : len; in pep_recvmsg()
/Linux-v5.15/tools/testing/selftests/net/
Dudpgso_bench_rx.c171 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
234 ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT); in recv_msg()
259 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.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-v5.15/net/mctp/
Daf_mctp.c141 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK)) in mctp_recvmsg()
158 msg->msg_flags |= MSG_TRUNC; in mctp_recvmsg()
185 if (flags & MSG_TRUNC) in mctp_recvmsg()
/Linux-v5.15/net/smc/
Dsmc_rx.c237 if (!(flags & MSG_TRUNC)) in smc_rx_recv_urg()
250 msg->msg_flags |= MSG_TRUNC; in smc_rx_recv_urg()
402 if (!(flags & MSG_TRUNC)) { in smc_rx_recvmsg()
/Linux-v5.15/tools/testing/vsock/
Dvsock_test.c378 ssize_t ret = recvmsg(fd, &msg, MSG_TRUNC); in test_seqpacket_msg_trunc_server()
386 if (!(msg.msg_flags & MSG_TRUNC)) { in test_seqpacket_msg_trunc_server()
/Linux-v5.15/net/ieee802154/
Dsocket.c323 msg->msg_flags |= MSG_TRUNC; in raw_recvmsg()
333 if (flags & MSG_TRUNC) in raw_recvmsg()
712 msg->msg_flags |= MSG_TRUNC; in dgram_recvmsg()
742 if (flags & MSG_TRUNC) in dgram_recvmsg()
/Linux-v5.15/net/sunrpc/
Dxprtsock.c420 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
443 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
459 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
531 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_request()
580 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_call()
606 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_reply()
615 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_reply()
649 msg.msg_flags |= MSG_TRUNC; in xs_read_stream()
657 if (msg.msg_flags & MSG_TRUNC) { in xs_read_stream()
665 if (!(msg.msg_flags & MSG_TRUNC)) in xs_read_stream()
/Linux-v5.15/net/l2tp/
Dl2tp_ip.c535 msg->msg_flags |= MSG_TRUNC; in l2tp_ip_recvmsg()
555 if (flags & MSG_TRUNC) in l2tp_ip_recvmsg()
Dl2tp_ip6.c680 msg->msg_flags |= MSG_TRUNC; in l2tp_ip6_recvmsg()
706 if (flags & MSG_TRUNC) in l2tp_ip6_recvmsg()
/Linux-v5.15/net/xfrm/
Despintcp.c155 msg->msg_flags |= MSG_TRUNC; in espintcp_recvmsg()
163 if (flags & MSG_TRUNC) in espintcp_recvmsg()
/Linux-v5.15/net/bluetooth/
Daf_bluetooth.c277 msg->msg_flags |= MSG_TRUNC; in bt_sock_recvmsg()
296 if (flags & MSG_TRUNC) in bt_sock_recvmsg()
/Linux-v5.15/net/rds/
Drecv.c710 if (msg_flags & MSG_TRUNC) in rds_recvmsg()
712 msg->msg_flags |= MSG_TRUNC; in rds_recvmsg()
/Linux-v5.15/net/ipv6/
Draw.c487 msg->msg_flags |= MSG_TRUNC; in rawv6_recvmsg()
492 } else if (msg->msg_flags&MSG_TRUNC) { in rawv6_recvmsg()
521 if (flags & MSG_TRUNC) in rawv6_recvmsg()
Ddatagram.c468 msg->msg_flags |= MSG_TRUNC; in ipv6_recv_error()
558 msg->msg_flags |= MSG_TRUNC; in ipv6_recv_rxpmtu()
/Linux-v5.15/drivers/net/
Dtap.c1219 if (flags & ~(MSG_DONTWAIT|MSG_TRUNC)) { in tap_recvmsg()
1225 m->msg_flags |= MSG_TRUNC; in tap_recvmsg()
1226 ret = flags & MSG_TRUNC ? ret : total_len; in tap_recvmsg()
/Linux-v5.15/tools/perf/trace/beauty/include/linux/
Dsocket.h296 #define MSG_TRUNC 0x20 macro
/Linux-v5.15/include/linux/
Dsocket.h296 #define MSG_TRUNC 0x20 macro
/Linux-v5.15/net/nfc/
Drawsock.c255 msg->msg_flags |= MSG_TRUNC; in rawsock_recvmsg()
/Linux-v5.15/net/caif/
Dcaif_socket.c289 m->msg_flags |= MSG_TRUNC; in caif_seqpkt_recvmsg()
297 ret = (flags & MSG_TRUNC) ? skb->len : copylen; in caif_seqpkt_recvmsg()
/Linux-v5.15/net/dccp/
Dproto.c892 msg->msg_flags |= MSG_TRUNC; in dccp_recvmsg()
899 if (flags & MSG_TRUNC) in dccp_recvmsg()
/Linux-v5.15/crypto/
Dalgif_hash.c196 msg->msg_flags |= MSG_TRUNC; in hash_recvmsg()

123