Home
last modified time | relevance | path

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

123

/openbmc/linux/net/rxrpc/
H A 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()
/openbmc/linux/tools/testing/selftests/net/af_unix/
H A 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()
/openbmc/linux/net/smc/
H A 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()
/openbmc/linux/net/core/
H A 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()
/openbmc/linux/net/llc/
H A Daf_llc.c783 if (flags & MSG_PEEK) { in llc_ui_recvmsg()
823 (flags & MSG_PEEK)) in llc_ui_recvmsg()
859 if ((flags & MSG_PEEK) && peek_seq != llc->copied_seq) { in llc_ui_recvmsg()
891 if (!(flags & MSG_PEEK)) { in llc_ui_recvmsg()
913 if (!(flags & MSG_PEEK)) { in llc_ui_recvmsg()
/openbmc/linux/tools/testing/vsock/
H A 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()
/openbmc/linux/net/phonet/
H A Ddatagram.c119 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL| in pn_recvmsg()
H A Dpep.c1269 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
1280 if (flags & MSG_PEEK) in pep_recvmsg()
/openbmc/linux/tools/testing/selftests/net/
H A Dtls.c862 MSG_WAITALL | MSG_PEEK), in TEST_F()
1032 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_PEEK), send_len); in TEST_F()
1049 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1); in TEST_F()
1073 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); in TEST_F()
1100 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len); in TEST_F()
1123 MSG_PEEK | MSG_WAITALL)), -1); in TEST_F()
1475 buf, sizeof(buf), MSG_WAITALL | MSG_PEEK), in TEST_F()
/openbmc/libpldm/src/transport/
H A Daf-mctp.c122 length = recv(af_mctp->socket, NULL, 0, MSG_PEEK | MSG_TRUNC); in pldm_transport_af_mctp_recv()
H A Dmctp-demux.c148 length = recv(demux->socket, NULL, 0, MSG_PEEK | MSG_TRUNC); in pldm_transport_mctp_demux_recv()
/openbmc/qemu/io/
H A Dchannel-socket.c529 sflags |= MSG_PEEK; in qio_channel_socket_readv()
648 sflags |= MSG_PEEK; in qio_channel_socket_readv()
/openbmc/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h304 #define MSG_PEEK 2 macro
/openbmc/linux/include/linux/
H A Dsocket.h304 #define MSG_PEEK 2 macro
/openbmc/linux/include/trace/events/
H A Dsock.h318 !(__entry->flags & MSG_PEEK) ?
/openbmc/linux/net/unix/
H A Daf_unix.c2344 if (!(flags & MSG_PEEK)) in __unix_dgram_recvmsg()
2392 if (!(flags & MSG_PEEK)) { in __unix_dgram_recvmsg()
2535 if (!(state->flags & MSG_PEEK)) in unix_stream_recv_urg()
2545 if (!(state->flags & MSG_PEEK)) in unix_stream_recv_urg()
2564 if (!unix_skb_len(skb) && !(flags & MSG_PEEK)) { in manage_oob()
2576 } else if (!(flags & MSG_PEEK)) { in manage_oob()
2812 if (!(flags & MSG_PEEK)) { in unix_stream_read_generic()
/openbmc/linux/net/atm/
H A Dcommon.c534 if (flags & ~(MSG_DONTWAIT | MSG_PEEK)) in vcc_recvmsg()
558 if (!(flags & MSG_PEEK)) { in vcc_recvmsg()
/openbmc/linux/net/dccp/
H A Dproto.c842 if (!(flags & MSG_PEEK)) in dccp_recvmsg()
909 if (!(flags & MSG_PEEK)) in dccp_recvmsg()
/openbmc/linux/net/nfc/
H A Dllcp_sock.c867 if (!(flags & MSG_PEEK)) in llcp_sock_recvmsg()
891 if (!(flags & MSG_PEEK)) { in llcp_sock_recvmsg()
/openbmc/linux/net/ipv4/
H A Dtcp.c1388 if (!(flags & MSG_PEEK)) in tcp_recv_urg()
2353 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
2367 if (flags & MSG_PEEK) { in tcp_recvmsg_locked()
2410 WARN(!(flags & MSG_PEEK), in tcp_recvmsg_locked()
2470 if ((flags & MSG_PEEK) && in tcp_recvmsg_locked()
2535 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
2542 if (!(flags & MSG_PEEK)) in tcp_recvmsg_locked()
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c577 ret = recv(fd, buf, cap, MSG_PEEK); in do_rnd_read()
580 ret = recv(fd, buf, cap, MSG_PEEK); in do_rnd_read()
/openbmc/linux/net/vmw_vsock/
H A Dvirtio_transport_common.c610 if (flags & MSG_PEEK) in virtio_transport_stream_dequeue()
622 if (flags & MSG_PEEK) in virtio_transport_seqpacket_dequeue()
H A Dhyperv_transport.c612 if (flags & MSG_PEEK) in hvs_stream_dequeue()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_basic.c509 recvd = recv(c1, rcv, sizeof(rcv), MSG_PEEK); in test_sockmap_skb_verdict_peek()
/openbmc/libmctp/utils/
H A Dmctp-demux-daemon.c370 len = recv(client->sock, NULL, 0, MSG_PEEK | MSG_TRUNC); in client_process_recv()

123