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