Lines Matching refs:opts
330 static void test_no_sockets(const struct test_opts *opts)
339 static void test_listen_socket_server(const struct test_opts *opts)
347 .svm_port = opts->peer_port,
377 static void test_connect_client(const struct test_opts *opts)
383 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port);
402 static void test_connect_server(const struct test_opts *opts)
408 client_fd = vsock_stream_accept(VMADDR_CID_ANY, opts->peer_port, NULL);
526 struct test_opts opts = {
546 opts.mode = TEST_MODE_CLIENT;
548 opts.mode = TEST_MODE_SERVER;
555 opts.peer_cid = parse_cid(optarg);
558 opts.peer_port = parse_port(optarg);
578 if (opts.mode == TEST_MODE_UNSET)
580 if (opts.peer_cid == VMADDR_CID_ANY)
584 if (opts.mode != TEST_MODE_SERVER)
590 opts.mode == TEST_MODE_SERVER);
592 run_tests(test_cases, &opts);