Lines Matching refs:opts
24 static void test_stream_connection_reset(const struct test_opts *opts) in test_stream_connection_reset() argument
33 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
60 static void test_stream_bind_only_client(const struct test_opts *opts) in test_stream_bind_only_client() argument
69 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
102 static void test_stream_bind_only_server(const struct test_opts *opts) in test_stream_bind_only_server() argument
132 static void test_stream_client_close_client(const struct test_opts *opts) in test_stream_client_close_client() argument
136 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client()
146 static void test_stream_client_close_server(const struct test_opts *opts) in test_stream_client_close_server() argument
167 static void test_stream_server_close_client(const struct test_opts *opts) in test_stream_server_close_client() argument
171 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client()
188 static void test_stream_server_close_server(const struct test_opts *opts) in test_stream_server_close_server() argument
207 static void test_stream_multiconn_client(const struct test_opts *opts) in test_stream_multiconn_client() argument
213 fds[i] = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_multiconn_client()
231 static void test_stream_multiconn_server(const struct test_opts *opts) in test_stream_multiconn_server() argument
255 static void test_stream_msg_peek_client(const struct test_opts *opts) in test_stream_msg_peek_client() argument
259 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_msg_peek_client()
269 static void test_stream_msg_peek_server(const struct test_opts *opts) in test_stream_msg_peek_server() argument
286 static void test_seqpacket_msg_bounds_client(const struct test_opts *opts) in test_seqpacket_msg_bounds_client() argument
290 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_bounds_client()
304 static void test_seqpacket_msg_bounds_server(const struct test_opts *opts) in test_seqpacket_msg_bounds_server() argument
339 static void test_seqpacket_msg_trunc_client(const struct test_opts *opts) in test_seqpacket_msg_trunc_client() argument
344 fd = vsock_seqpacket_connect(opts->peer_cid, 1234); in test_seqpacket_msg_trunc_client()
359 static void test_seqpacket_msg_trunc_server(const struct test_opts *opts) in test_seqpacket_msg_trunc_server() argument
512 struct test_opts opts = { in main() local
531 opts.mode = TEST_MODE_CLIENT; in main()
533 opts.mode = TEST_MODE_SERVER; in main()
540 opts.peer_cid = parse_cid(optarg); in main()
560 if (opts.mode == TEST_MODE_UNSET) in main()
562 if (opts.peer_cid == VMADDR_CID_ANY) in main()
566 if (opts.mode != TEST_MODE_SERVER) in main()
572 opts.mode == TEST_MODE_SERVER); in main()
574 run_tests(test_cases, &opts); in main()