Lines Matching defs:opts
328 static void test_no_sockets(const struct test_opts *opts)
337 static void test_listen_socket_server(const struct test_opts *opts)
375 static void test_connect_client(const struct test_opts *opts)
381 fd = vsock_stream_connect(opts->peer_cid, 1234);
400 static void test_connect_server(const struct test_opts *opts)
517 struct test_opts opts = {
536 opts.mode = TEST_MODE_CLIENT;
538 opts.mode = TEST_MODE_SERVER;
545 opts.peer_cid = parse_cid(optarg);
565 if (opts.mode == TEST_MODE_UNSET)
567 if (opts.peer_cid == VMADDR_CID_ANY)
571 if (opts.mode != TEST_MODE_SERVER)
577 opts.mode == TEST_MODE_SERVER);
579 run_tests(test_cases, &opts);