Home
last modified time | relevance | path

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

/linux-6.6.21/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()
269 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_msg_peek_client()
271 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_msg_peek_client()
405 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_bounds_client()
558 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_trunc_client()
631 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_timeout_client()
[all …]
Dvsock_perf.c250 static void run_sender(int peer_cid, unsigned long to_send_bytes) in run_sender() argument
259 printf("Connect to %i:%u\n", peer_cid, port); in run_sender()
263 fd = vsock_connect(peer_cid, port); in run_sender()
384 int peer_cid = -1; in main() local
410 peer_cid = strtolx(optarg); in main()
424 run_sender(peer_cid, to_send_bytes); in main()
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.6.21/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()