Home
last modified time | relevance | path

Searched refs:MSG_PEEK (Results 1 – 25 of 53) sorted by relevance

123

/Linux-v6.6/net/rxrpc/
Drecvmsg.c198 if (!(flags & MSG_PEEK)) in rxrpc_recvmsg_data()
256 if (!(flags & MSG_PEEK)) in rxrpc_recvmsg_data()
261 if (!(flags & MSG_PEEK)) { in rxrpc_recvmsg_data()
354 if (!(flags & MSG_PEEK)) in rxrpc_recvmsg()
428 if (!(flags & MSG_PEEK)) in rxrpc_recvmsg()
447 if (!(flags & MSG_PEEK)) { in rxrpc_recvmsg()
/Linux-v6.6/tools/testing/selftests/net/af_unix/
Dtest_unix_oob.c244 len = recv(pfd, buf, 1024, MSG_PEEK); in main()
268 len = recv(pfd, buf, 1024, MSG_PEEK); in main()
369 len = recv(pfd, buf, 1024, MSG_PEEK); in main()
401 len = recv(pfd, buf, 1024, MSG_PEEK); in main()
/Linux-v6.6/net/smc/
Dsmc_rx.c296 if (!(flags & MSG_PEEK)) in smc_rx_recv_urg()
310 if (!(flags & MSG_PEEK)) in smc_rx_recv_urg()
493 if (!(flags & MSG_PEEK)) { in smc_rx_recvmsg()
/Linux-v6.6/net/core/
Ddatagram.c175 if (unlikely(flags & MSG_PEEK && *off >= 0)) { in __skb_try_recv_from_queue()
182 if (flags & MSG_PEEK) { in __skb_try_recv_from_queue()
352 if (flags & MSG_PEEK) { in __sk_queue_drop_skb()
/Linux-v6.6/net/llc/
Daf_llc.c781 if (flags & MSG_PEEK) { in llc_ui_recvmsg()
821 (flags & MSG_PEEK)) in llc_ui_recvmsg()
857 if ((flags & MSG_PEEK) && peek_seq != llc->copied_seq) { in llc_ui_recvmsg()
889 if (!(flags & MSG_PEEK)) { in llc_ui_recvmsg()
911 if (!(flags & MSG_PEEK)) { in llc_ui_recvmsg()
/Linux-v6.6/tools/testing/vsock/
Dvsock_test.c318 res = recv(fd, buf_peek, sizeof(buf_peek), MSG_PEEK | MSG_DONTWAIT); in test_msg_peek_server()
332 res = recv(fd, buf_half, sizeof(buf_half), MSG_PEEK); in test_msg_peek_server()
340 res = recv(fd, buf_peek, sizeof(buf_peek), MSG_PEEK); in test_msg_peek_server()
358 res = recv(fd, buf_half, sizeof(buf_half), MSG_PEEK | in test_msg_peek_server()
/Linux-v6.6/net/phonet/
Ddatagram.c119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL| in pn_recvmsg()
Dpep.c1246 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
1257 if (flags & MSG_PEEK) in pep_recvmsg()
/Linux-v6.6/tools/testing/selftests/net/
Dtls.c848 MSG_WAITALL | MSG_PEEK), in TEST_F()
1018 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_PEEK), send_len); in TEST_F()
1035 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1); in TEST_F()
1059 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); in TEST_F()
1086 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); in TEST_F()
1109 MSG_PEEK | MSG_WAITALL)), -1); in TEST_F()
1461 buf, sizeof(buf), MSG_WAITALL | MSG_PEEK), in TEST_F()
/Linux-v6.6/net/unix/
Daf_unix.c2365 if (!(flags & MSG_PEEK)) in __unix_dgram_recvmsg()
2413 if (!(flags & MSG_PEEK)) { in __unix_dgram_recvmsg()
2554 if (!(state->flags & MSG_PEEK)) in unix_stream_recv_urg()
2561 if (!(state->flags & MSG_PEEK)) { in unix_stream_recv_urg()
2580 if (!unix_skb_len(skb) && !(flags & MSG_PEEK)) { in manage_oob()
2589 if (!(flags & MSG_PEEK)) { in manage_oob()
2593 } else if (!(flags & MSG_PEEK)) { in manage_oob()
2777 if (!(flags & MSG_PEEK)) { in unix_stream_read_generic()
/Linux-v6.6/include/linux/
Dsocket.h304 #define MSG_PEEK 2 macro
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h304 #define MSG_PEEK 2 macro
/Linux-v6.6/include/trace/events/
Dsock.h318 !(__entry->flags & MSG_PEEK) ?
/Linux-v6.6/net/atm/
Dcommon.c534 if (flags & ~(MSG_DONTWAIT | MSG_PEEK)) in vcc_recvmsg()
558 if (!(flags & MSG_PEEK)) { in vcc_recvmsg()
/Linux-v6.6/net/dccp/
Dproto.c842 if (!(flags & MSG_PEEK)) in dccp_recvmsg()
909 if (!(flags & MSG_PEEK)) in dccp_recvmsg()
/Linux-v6.6/net/nfc/
Dllcp_sock.c862 if (!(flags & MSG_PEEK)) in llcp_sock_recvmsg()
886 if (!(flags & MSG_PEEK)) { in llcp_sock_recvmsg()
/Linux-v6.6/net/ipv4/
Dtcp.c1384 if (!(flags & MSG_PEEK)) in tcp_recv_urg()
2339 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
2353 if (flags & MSG_PEEK) { in tcp_recvmsg_locked()
2396 WARN(!(flags & MSG_PEEK), in tcp_recvmsg_locked()
2456 if ((flags & MSG_PEEK) && in tcp_recvmsg_locked()
2521 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
2528 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
Dtcp_bpf.c225 int peek = flags & MSG_PEEK; in tcp_bpf_recvmsg_parser()
/Linux-v6.6/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c576 ret = recv(fd, buf, cap, MSG_PEEK); in do_rnd_read()
579 ret = recv(fd, buf, cap, MSG_PEEK); in do_rnd_read()
/Linux-v6.6/net/vmw_vsock/
Dvirtio_transport_common.c601 if (flags & MSG_PEEK) in virtio_transport_stream_dequeue()
613 if (flags & MSG_PEEK) in virtio_transport_seqpacket_dequeue()
Dhyperv_transport.c612 if (flags & MSG_PEEK) in hvs_stream_dequeue()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c509 recvd = recv(c1, rcv, sizeof(rcv), MSG_PEEK); in test_sockmap_skb_verdict_peek()
/Linux-v6.6/net/mctp/
Daf_mctp.c216 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK)) in mctp_recvmsg()
/Linux-v6.6/net/iucv/
Daf_iucv.c1257 if (!(flags & MSG_PEEK)) in iucv_sock_recvmsg()
1277 if (!(flags & MSG_PEEK)) in iucv_sock_recvmsg()
1283 if (!(flags & MSG_PEEK)) { in iucv_sock_recvmsg()
/Linux-v6.6/net/bluetooth/
Daf_bluetooth.c440 if (!(flags & MSG_PEEK)) { in bt_sock_stream_recvmsg()

123