Searched refs:MSG_PEEK (Results 1 - 25 of 55) sorted by relevance

123

/linux-master/net/rxrpc/
H A Drecvmsg.c198 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 Dtest_unix_oob.c242 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 Dsmc_rx.c296 if (!(flags & MSG_PEEK))
310 if (!(flags & MSG_PEEK))
493 if (!(flags & MSG_PEEK)) {
/linux-master/net/phonet/
H A Ddatagram.c119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL|
H A Dpep.c1269 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL|
1280 if (flags & MSG_PEEK)
/linux-master/net/llc/
H A Daf_llc.c783 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 Dvsock_test.c308 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 Dtls.c862 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 Drepair.c64 ret = recv(sk, q->buf, qlen, MSG_PEEK | MSG_DONTWAIT);
/linux-master/tools/testing/selftests/bpf/
H A Dnetlink_helpers.c117 len = __rtnl_recvmsg(fd, msg, MSG_PEEK | MSG_TRUNC);
/linux-master/include/linux/
H A Dsocket.h304 #define MSG_PEEK 2 macro
/linux-master/tools/perf/trace/beauty/include/linux/
H A Dsocket.h304 #define MSG_PEEK 2 macro
/linux-master/net/core/
H A Ddatagram.c176 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 Dsock.h318 !(__entry->flags & MSG_PEEK) ?
/linux-master/net/dccp/
H A Dproto.c842 if (!(flags & MSG_PEEK))
909 if (!(flags & MSG_PEEK))
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c129 "\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 Dcommon.c533 /* 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 Dllcp_sock.c867 if (!(flags & MSG_PEEK))
891 if (!(flags & MSG_PEEK)) {
/linux-master/net/unix/
H A Daf_unix.c1849 * 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 Dtcp.c1386 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 Dtcp_bpf.c225 int peek = flags & MSG_PEEK;
/linux-master/net/vmw_vsock/
H A Dhyperv_transport.c612 if (flags & MSG_PEEK)
H A Dvirtio_transport_common.c774 if (flags & MSG_PEEK)
786 if (flags & MSG_PEEK)
/linux-master/net/bluetooth/
H A Daf_bluetooth.c440 if (!(flags & MSG_PEEK)) {
/linux-master/net/mctp/
H A Daf_mctp.c216 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK))

Completed in 285 milliseconds

123