Searched refs:MSG_TRUNC (Results 1 - 25 of 67) sorted by relevance

123

/linux-master/net/phonet/
H A Ddatagram.c119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL|
131 msg->msg_flags |= MSG_TRUNC;
141 rval = (flags & MSG_TRUNC) ? skb->len : copylen;
H A Dpep.c1269 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL|
1308 msg->msg_flags |= MSG_TRUNC;
1314 err = (flags & MSG_TRUNC) ? skb->len : len;
/linux-master/tools/testing/selftests/bpf/
H A Dnetlink_helpers.c117 len = __rtnl_recvmsg(fd, msg, MSG_PEEK | MSG_TRUNC);
197 if (msg.msg_flags & MSG_TRUNC) {
253 if (msg.msg_flags & MSG_TRUNC) {
/linux-master/tools/testing/selftests/net/
H A Dudpgso_bench_rx.c170 /* MSG_TRUNC flushes up to len bytes */
171 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT);
233 ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT);
255 /* MSG_TRUNC will make return value full datagram length */
257 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT);
H A Dipv6_flowlabel.c122 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC))
H A Dmsg_zerocopy.c608 /* MSG_TRUNC flushes up to len bytes */
609 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT);
627 /* MSG_TRUNC will return full datagram length */
628 ret = recv(fd, buf, sizeof(buf), MSG_DONTWAIT | MSG_TRUNC);
H A Drxtimestamp.c204 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC))
/linux-master/net/smc/
H A Dsmc_rx.c300 if (!(flags & MSG_TRUNC))
313 msg->msg_flags |= MSG_TRUNC;
465 if (!(flags & MSG_TRUNC)) {
/linux-master/net/mctp/
H A Daf_mctp.c216 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK))
233 msg->msg_flags |= MSG_TRUNC;
273 if (flags & MSG_TRUNC)
/linux-master/net/ieee802154/
H A Dsocket.c328 msg->msg_flags |= MSG_TRUNC;
338 if (flags & MSG_TRUNC)
720 msg->msg_flags |= MSG_TRUNC;
750 if (flags & MSG_TRUNC)
/linux-master/net/l2tp/
H A Dl2tp_ip6.c678 msg->msg_flags |= MSG_TRUNC;
704 if (flags & MSG_TRUNC)
H A Dl2tp_ip.c537 msg->msg_flags |= MSG_TRUNC;
557 if (flags & MSG_TRUNC)
/linux-master/net/bluetooth/
H A Daf_bluetooth.c323 msg->msg_flags |= MSG_TRUNC;
346 if (flags & MSG_TRUNC)
/linux-master/net/xfrm/
H A Despintcp.c155 msg->msg_flags |= MSG_TRUNC;
163 if (flags & MSG_TRUNC)
/linux-master/tools/testing/selftests/net/af_unix/
H A Dscm_pidfd.c156 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) {
/linux-master/include/linux/
H A Dsocket.h309 #define MSG_TRUNC 0x20 macro
/linux-master/tools/perf/trace/beauty/include/linux/
H A Dsocket.h309 #define MSG_TRUNC 0x20 macro
/linux-master/tools/testing/vsock/
H A Dvsock_test.c326 /* This type of socket supports MSG_TRUNC flag,
330 recv_buf(fd, buf_half, sizeof(buf_half), MSG_PEEK | MSG_TRUNC,
539 ssize_t ret = recvmsg(fd, &msg, MSG_TRUNC);
543 perror("MSG_TRUNC doesn't work");
547 if (!(msg.msg_flags & MSG_TRUNC)) {
548 fprintf(stderr, "MSG_TRUNC expected\n");
1442 .name = "SOCK_SEQPACKET MSG_TRUNC flag",
/linux-master/net/sunrpc/
H A Dxprtsock.c474 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC))
497 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC))
513 if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC))
585 msg->msg_flags |= MSG_TRUNC;
634 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC))
660 msg->msg_flags |= MSG_TRUNC;
669 if (msg->msg_flags & (MSG_EOR|MSG_TRUNC))
703 msg.msg_flags |= MSG_TRUNC;
711 if (msg.msg_flags & MSG_TRUNC) {
719 if (!(msg.msg_flags & MSG_TRUNC))
[all...]
/linux-master/drivers/net/
H A Dtap.c1258 if (flags & ~(MSG_DONTWAIT|MSG_TRUNC)) {
1264 m->msg_flags |= MSG_TRUNC;
1265 ret = flags & MSG_TRUNC ? ret : total_len;
/linux-master/net/ipv6/
H A Draw.c458 msg->msg_flags |= MSG_TRUNC;
463 } else if (msg->msg_flags&MSG_TRUNC) {
492 if (flags & MSG_TRUNC)
/linux-master/net/nfc/
H A Drawsock.c257 msg->msg_flags |= MSG_TRUNC;
/linux-master/net/rxrpc/
H A Drecvmsg.c293 if (flags & (MSG_OOB | MSG_TRUNC))
/linux-master/crypto/
H A Dalgif_hash.c192 msg->msg_flags |= MSG_TRUNC;
/linux-master/net/dccp/
H A Dproto.c899 msg->msg_flags |= MSG_TRUNC;
906 if (flags & MSG_TRUNC)

Completed in 210 milliseconds

123