Lines Matching defs:opts
328 static void test_no_sockets(const struct test_opts *opts)
339 static void test_listen_socket_server(const struct test_opts *opts)
377 static void test_connect_client(const struct test_opts *opts)
383 fd = vsock_stream_connect(opts->peer_cid, 1234);
402 static void test_connect_server(const struct test_opts *opts)
519 struct test_opts opts = {
538 opts.mode = TEST_MODE_CLIENT;
540 opts.mode = TEST_MODE_SERVER;
547 opts.peer_cid = parse_cid(optarg);
567 if (opts.mode == TEST_MODE_UNSET)
569 if (opts.peer_cid == VMADDR_CID_ANY)
573 if (opts.mode != TEST_MODE_SERVER)
579 opts.mode == TEST_MODE_SERVER);
581 run_tests(test_cases, &opts);