Searched refs:peer_cid (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/tools/testing/vsock/ |
D | vsock_test.c | 36 .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 …]
|
D | vsock_diag_test.c | 381 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()
|
D | util.h | 18 unsigned int peer_cid; member
|
/linux-6.1.9/net/vmw_vsock/ |
D | vmci_transport.c | 103 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()
|