Lines Matching refs:opts
22 static void test_stream_connection_reset(const struct test_opts *opts) in test_stream_connection_reset() argument
31 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
58 static void test_stream_bind_only_client(const struct test_opts *opts) in test_stream_bind_only_client() argument
67 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
100 static void test_stream_bind_only_server(const struct test_opts *opts) in test_stream_bind_only_server() argument
130 static void test_stream_client_close_client(const struct test_opts *opts) in test_stream_client_close_client() argument
134 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client()
144 static void test_stream_client_close_server(const struct test_opts *opts) in test_stream_client_close_server() argument
165 static void test_stream_server_close_client(const struct test_opts *opts) in test_stream_server_close_client() argument
169 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client()
186 static void test_stream_server_close_server(const struct test_opts *opts) in test_stream_server_close_server() argument
205 static void test_stream_multiconn_client(const struct test_opts *opts) in test_stream_multiconn_client() argument
211 fds[i] = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_multiconn_client()
229 static void test_stream_multiconn_server(const struct test_opts *opts) in test_stream_multiconn_server() argument
253 static void test_stream_msg_peek_client(const struct test_opts *opts) in test_stream_msg_peek_client() argument
257 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_msg_peek_client()
267 static void test_stream_msg_peek_server(const struct test_opts *opts) in test_stream_msg_peek_server() argument
390 struct test_opts opts = { in main() local
409 opts.mode = TEST_MODE_CLIENT; in main()
411 opts.mode = TEST_MODE_SERVER; in main()
418 opts.peer_cid = parse_cid(optarg); in main()
438 if (opts.mode == TEST_MODE_UNSET) in main()
440 if (opts.peer_cid == VMADDR_CID_ANY) in main()
444 if (opts.mode != TEST_MODE_SERVER) in main()
450 opts.mode == TEST_MODE_SERVER); in main()
452 run_tests(test_cases, &opts); in main()