+static void test_dgram_sendto_client(const struct test_opts *opts) +{ + union { + struct sockaddr sa; + struct sockaddr_vm svm; + } addr = { + .svm = { + .svm_family = AF_VSOCK, + .svm_port = 1234, ^^^ port is not hardcoded, it is 'opts->peer_port' + .svm_cid = opts->peer_cid, + }, + }; + int fd; Thanks, Arseniy