[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8e3071f2-682c-7f0d-ff10-2865d7c2d8d4@salutedevices.com>
Date: Sat, 20 Jul 2024 22:58:40 +0300
From: Arseniy Krasnov <avkrasnov@...utedevices.com>
To: <stefanha@...hat.com>, <sgarzare@...hat.com>, <mst@...hat.com>,
<jasowang@...hat.com>, <xuanzhuo@...ux.alibaba.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<kys@...rosoft.com>, <haiyangz@...rosoft.com>, <wei.liu@...nel.org>,
<decui@...rosoft.com>, <bryantan@...are.com>, <vdasa@...are.com>,
<pv-drivers@...are.com>
CC: <dan.carpenter@...aro.org>, <simon.horman@...igine.com>,
<oxffffaa@...il.com>, <kvm@...r.kernel.org>,
<virtualization@...ts.linux-foundation.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-hyperv@...r.kernel.org>,
<bpf@...r.kernel.org>, <bobby.eshleman@...edance.com>,
<jiang.wang@...edance.com>, <amery.hung@...edance.com>,
<ameryhung@...il.com>, <xiyou.wangcong@...il.com>
Subject: Re: [RFC PATCH net-next v6 14/14] test/vsock: add vsock dgram tests
+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
Powered by blists - more mailing lists