Searched refs:MSG_TRUNC (Results 1 - 25 of 67) sorted by relevance
123
/linux-master/net/phonet/ |
H A D | datagram.c | 119 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 D | pep.c | 1269 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 D | netlink_helpers.c | 117 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 D | udpgso_bench_rx.c | 170 /* 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 D | ipv6_flowlabel.c | 122 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC))
|
H A D | msg_zerocopy.c | 608 /* 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 D | rxtimestamp.c | 204 if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC))
|
/linux-master/net/smc/ |
H A D | smc_rx.c | 300 if (!(flags & MSG_TRUNC)) 313 msg->msg_flags |= MSG_TRUNC; 465 if (!(flags & MSG_TRUNC)) {
|
/linux-master/net/mctp/ |
H A D | af_mctp.c | 216 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 D | socket.c | 328 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 D | l2tp_ip6.c | 678 msg->msg_flags |= MSG_TRUNC; 704 if (flags & MSG_TRUNC)
|
H A D | l2tp_ip.c | 537 msg->msg_flags |= MSG_TRUNC; 557 if (flags & MSG_TRUNC)
|
/linux-master/net/bluetooth/ |
H A D | af_bluetooth.c | 323 msg->msg_flags |= MSG_TRUNC; 346 if (flags & MSG_TRUNC)
|
/linux-master/net/xfrm/ |
H A D | espintcp.c | 155 msg->msg_flags |= MSG_TRUNC; 163 if (flags & MSG_TRUNC)
|
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | scm_pidfd.c | 156 if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) {
|
/linux-master/include/linux/ |
H A D | socket.h | 309 #define MSG_TRUNC 0x20 macro
|
/linux-master/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 309 #define MSG_TRUNC 0x20 macro
|
/linux-master/tools/testing/vsock/ |
H A D | vsock_test.c | 326 /* 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 D | xprtsock.c | 474 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 D | tap.c | 1258 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 D | raw.c | 458 msg->msg_flags |= MSG_TRUNC; 463 } else if (msg->msg_flags&MSG_TRUNC) { 492 if (flags & MSG_TRUNC)
|
/linux-master/net/nfc/ |
H A D | rawsock.c | 257 msg->msg_flags |= MSG_TRUNC;
|
/linux-master/net/rxrpc/ |
H A D | recvmsg.c | 293 if (flags & (MSG_OOB | MSG_TRUNC))
|
/linux-master/crypto/ |
H A D | algif_hash.c | 192 msg->msg_flags |= MSG_TRUNC;
|
/linux-master/net/dccp/ |
H A D | proto.c | 899 msg->msg_flags |= MSG_TRUNC; 906 if (flags & MSG_TRUNC)
|
Completed in 210 milliseconds
123