Re: [RFC PATCH net-next v6 14/14] test/vsock: add vsock dgram tests
From: Arseniy Krasnov
Date: Sat Jul 20 2024 - 16:11:29 EST
+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