/linux-master/net/rxrpc/ |
H A D | recvmsg.c | 198 if (!(flags & MSG_PEEK)) 256 if (!(flags & MSG_PEEK)) 261 if (!(flags & MSG_PEEK)) { 354 if (!(flags & MSG_PEEK)) 428 if (!(flags & MSG_PEEK)) 447 if (!(flags & MSG_PEEK)) {
|
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 242 len = recv(pfd, buf, 1024, MSG_PEEK); 266 len = recv(pfd, buf, 1024, MSG_PEEK); 367 len = recv(pfd, buf, 1024, MSG_PEEK); 399 len = recv(pfd, buf, 1024, MSG_PEEK);
|
/linux-master/net/smc/ |
H A D | smc_rx.c | 296 if (!(flags & MSG_PEEK)) 310 if (!(flags & MSG_PEEK)) 493 if (!(flags & MSG_PEEK)) {
|
/linux-master/net/phonet/ |
H A D | datagram.c | 119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL|
|
H A D | pep.c | 1269 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| 1280 if (flags & MSG_PEEK)
|
/linux-master/net/llc/ |
H A D | af_llc.c | 783 if (flags & MSG_PEEK) { 823 (flags & MSG_PEEK)) 859 if ((flags & MSG_PEEK) && peek_seq != llc->copied_seq) { 860 net_dbg_ratelimited("LLC(%s:%d): Application bug, race in MSG_PEEK\n", 891 if (!(flags & MSG_PEEK)) { 913 if (!(flags & MSG_PEEK)) {
|
/linux-master/tools/testing/vsock/ |
H A D | vsock_test.c | 308 recv_buf(fd, buf_peek, sizeof(buf_peek), MSG_PEEK | MSG_DONTWAIT, 314 recv_buf(fd, buf_half, sizeof(buf_half), MSG_PEEK, sizeof(buf_half)); 317 recv_buf(fd, buf_peek, sizeof(buf_peek), MSG_PEEK, sizeof(buf_peek)); 327 * so check it with MSG_PEEK. We must get length 330 recv_buf(fd, buf_half, sizeof(buf_half), MSG_PEEK | MSG_TRUNC, 1337 res = recv(fd, buf, buf_size, MSG_PEEK); 1432 .name = "SOCK_STREAM MSG_PEEK", 1482 .name = "SOCK_SEQPACKET MSG_PEEK",
|
/linux-master/tools/testing/selftests/net/ |
H A D | tls.c | 862 MSG_WAITALL | MSG_PEEK), 1032 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_PEEK), send_len); 1049 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1); 1073 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); 1075 /* MSG_PEEK can only peek into the current record. */ 1083 /* Non-MSG_PEEK will advance strparser (and therefore record) 1089 /* MSG_MORE will hold current record open, so later MSG_PEEK 1100 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); 1123 MSG_PEEK | MSG_WAITALL)), -1); 1475 buf, sizeof(buf), MSG_WAITALL | MSG_PEEK), [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | repair.c | 64 ret = recv(sk, q->buf, qlen, MSG_PEEK | MSG_DONTWAIT);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | netlink_helpers.c | 117 len = __rtnl_recvmsg(fd, msg, MSG_PEEK | MSG_TRUNC);
|
/linux-master/include/linux/ |
H A D | socket.h | 304 #define MSG_PEEK 2 macro
|
/linux-master/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 304 #define MSG_PEEK 2 macro
|
/linux-master/net/core/ |
H A D | datagram.c | 176 if (unlikely(flags & MSG_PEEK && *off >= 0)) { 183 if (flags & MSG_PEEK) { 353 if (flags & MSG_PEEK) { 381 * If the MSG_PEEK flag is set, and the packet is still on the
|
/linux-master/include/trace/events/ |
H A D | sock.h | 318 !(__entry->flags & MSG_PEEK) ?
|
/linux-master/net/dccp/ |
H A D | proto.c | 842 if (!(flags & MSG_PEEK)) 909 if (!(flags & MSG_PEEK))
|
/linux-master/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_connect.c | 129 "\t-P [saveWithPeek|saveAfterPeek] -- save data with/after MSG_PEEK form tcp socket\n"); 577 ret = recv(fd, buf, cap, MSG_PEEK); 580 ret = recv(fd, buf, cap, MSG_PEEK); 1348 fprintf(stderr, "Supported MSG_PEEK mode are:\n"); 1350 "\t\t\"saveWithPeek\" - recv data with flags 'MSG_PEEK' and save the peek data into file\n"); 1352 "\t\t\"saveAfterPeek\" - read and save data into file after recv with flags 'MSG_PEEK'\n");
|
/linux-master/net/atm/ |
H A D | common.c | 533 /* only handle MSG_DONTWAIT and MSG_PEEK */ 534 if (flags & ~(MSG_DONTWAIT | MSG_PEEK)) 558 if (!(flags & MSG_PEEK)) {
|
/linux-master/net/nfc/ |
H A D | llcp_sock.c | 867 if (!(flags & MSG_PEEK)) 891 if (!(flags & MSG_PEEK)) {
|
/linux-master/net/unix/ |
H A D | af_unix.c | 1849 * MSG_PEEK is special in that it does not change the inflight count, 2432 if (!(flags & MSG_PEEK)) 2485 if (!(flags & MSG_PEEK)) { 2626 if (!(state->flags & MSG_PEEK)) 2634 if (!(state->flags & MSG_PEEK)) 2653 if (!unix_skb_len(skb) && !(flags & MSG_PEEK)) { 2662 if (!(flags & MSG_PEEK)) { 2666 } else if (flags & MSG_PEEK) { 2857 if (!(flags & MSG_PEEK)) {
|
/linux-master/net/ipv4/ |
H A D | tcp.c | 1386 if (!(flags & MSG_PEEK)) 2349 if (!(flags & MSG_PEEK)) 2359 /* 'common' recv queue MSG_PEEK-ing */ 2363 if (flags & MSG_PEEK) { 2406 WARN(!(flags & MSG_PEEK), 2466 if ((flags & MSG_PEEK) && 2468 net_dbg_ratelimited("TCP(%s:%d): Application bug, race in MSG_PEEK\n", 2531 if (!(flags & MSG_PEEK)) 2538 if (!(flags & MSG_PEEK))
|
H A D | tcp_bpf.c | 225 int peek = flags & MSG_PEEK;
|
/linux-master/net/vmw_vsock/ |
H A D | hyperv_transport.c | 612 if (flags & MSG_PEEK)
|
H A D | virtio_transport_common.c | 774 if (flags & MSG_PEEK) 786 if (flags & MSG_PEEK)
|
/linux-master/net/bluetooth/ |
H A D | af_bluetooth.c | 440 if (!(flags & MSG_PEEK)) {
|
/linux-master/net/mctp/ |
H A D | af_mctp.c | 216 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK))
|