Home
last modified time | relevance | path

Searched refs:peer_cid (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/tools/testing/vsock/
Dvsock_test.c36 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
72 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
139 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client()
174 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client()
216 fds[i] = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_multiconn_client()
262 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_msg_peek_client()
293 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_bounds_client()
347 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_trunc_client()
420 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_timeout_client()
485 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_invalid_rec_buffer_client()
[all …]
Dvsock_diag_test.c381 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_connect_client()
519 .peer_cid = VMADDR_CID_ANY, in main()
545 opts.peer_cid = parse_cid(optarg); in main()
567 if (opts.peer_cid == VMADDR_CID_ANY) in main()
Dutil.h18 unsigned int peer_cid; member
/linux-6.1.9/net/vmw_vsock/
Dvmci_transport.c103 static u32 vmci_transport_peer_rid(u32 peer_cid) in vmci_transport_peer_rid() argument
105 if (VMADDR_CID_HYPERVISOR == peer_cid) in vmci_transport_peer_rid()
517 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_is_trusted() argument
520 vmci_is_context_owner(peer_cid, vsock->owner->uid); in vmci_transport_is_trusted()
527 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_allow_dgram() argument
529 if (VMADDR_CID_HYPERVISOR == peer_cid) in vmci_transport_allow_dgram()
532 if (vsock->cached_peer != peer_cid) { in vmci_transport_allow_dgram()
533 vsock->cached_peer = peer_cid; in vmci_transport_allow_dgram()
534 if (!vmci_transport_is_trusted(vsock, peer_cid) && in vmci_transport_allow_dgram()
535 (vmci_context_get_priv_flags(peer_cid) & in vmci_transport_allow_dgram()