Re: [RFC PATCH net-next v6 14/14] test/vsock: add vsock dgram tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+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




[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux