Home
last modified time | relevance | path

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

123

/Linux-v5.4/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.4/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()
/Linux-v5.4/net/smc/
Dsmc_rx.c239 if (!(flags & MSG_TRUNC)) in smc_rx_recv_urg()
252 msg->msg_flags |= MSG_TRUNC; in smc_rx_recv_urg()
396 if (!(flags & MSG_TRUNC)) { in smc_rx_recvmsg()
/Linux-v5.4/net/ieee802154/
Dsocket.c324 msg->msg_flags |= MSG_TRUNC; in raw_recvmsg()
334 if (flags & MSG_TRUNC) in raw_recvmsg()
717 msg->msg_flags |= MSG_TRUNC; in dgram_recvmsg()
747 if (flags & MSG_TRUNC) in dgram_recvmsg()
/Linux-v5.4/net/sunrpc/
Dxprtsock.c414 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
436 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
452 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_xdr_buf()
524 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_request()
569 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_call()
595 msg->msg_flags |= MSG_TRUNC; in xs_read_stream_reply()
604 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) in xs_read_stream_reply()
638 msg.msg_flags |= MSG_TRUNC; in xs_read_stream()
646 if (msg.msg_flags & MSG_TRUNC) { in xs_read_stream()
654 if (!(msg.msg_flags & MSG_TRUNC)) in xs_read_stream()
/Linux-v5.4/net/l2tp/
Dl2tp_ip.c530 msg->msg_flags |= MSG_TRUNC; in l2tp_ip_recvmsg()
550 if (flags & MSG_TRUNC) in l2tp_ip_recvmsg()
Dl2tp_ip6.c682 msg->msg_flags |= MSG_TRUNC; in l2tp_ip6_recvmsg()
708 if (flags & MSG_TRUNC) in l2tp_ip6_recvmsg()
/Linux-v5.4/net/bluetooth/
Daf_bluetooth.c277 msg->msg_flags |= MSG_TRUNC; in bt_sock_recvmsg()
293 if (flags & MSG_TRUNC) in bt_sock_recvmsg()
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c199 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) in do_recv()
/Linux-v5.4/include/linux/
Dsocket.h278 #define MSG_TRUNC 0x20 macro
/Linux-v5.4/net/rds/
Drecv.c709 if (msg_flags & MSG_TRUNC) in rds_recvmsg()
711 msg->msg_flags |= MSG_TRUNC; in rds_recvmsg()
/Linux-v5.4/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.c452 msg->msg_flags |= MSG_TRUNC; in ipv6_recv_error()
542 msg->msg_flags |= MSG_TRUNC; in ipv6_recv_rxpmtu()
Dudp.c297 msg->msg_flags |= MSG_TRUNC; in udpv6_recvmsg()
379 if (flags & MSG_TRUNC) in udpv6_recvmsg()
395 msg->msg_flags &= ~MSG_TRUNC; in udpv6_recvmsg()
/Linux-v5.4/drivers/net/
Dtap.c1236 if (flags & ~(MSG_DONTWAIT|MSG_TRUNC)) { in tap_recvmsg()
1242 m->msg_flags |= MSG_TRUNC; in tap_recvmsg()
1243 ret = flags & MSG_TRUNC ? ret : total_len; in tap_recvmsg()
/Linux-v5.4/net/nfc/
Drawsock.c255 msg->msg_flags |= MSG_TRUNC; in rawsock_recvmsg()
/Linux-v5.4/net/dccp/
Dproto.c910 msg->msg_flags |= MSG_TRUNC; in dccp_recvmsg()
917 if (flags & MSG_TRUNC) in dccp_recvmsg()
/Linux-v5.4/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.4/crypto/
Dalgif_hash.c196 msg->msg_flags |= MSG_TRUNC; in hash_recvmsg()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_sock_fields.c399 err = recv(cli_fd, NULL, 0, MSG_TRUNC); in test()
/Linux-v5.4/net/ipv4/
Draw.c773 msg->msg_flags |= MSG_TRUNC; in raw_recvmsg()
793 if (flags & MSG_TRUNC) in raw_recvmsg()
/Linux-v5.4/net/rxrpc/
Drecvmsg.c454 if (flags & (MSG_OOB | MSG_TRUNC)) in rxrpc_recvmsg()

123