aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMikhail Golubev <Mikhail.Golubev@opensynergy.com>2019-11-19 18:31:34 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-11-21 10:52:14 +0100
commit552c1210136b37d69456490d8ebadb9bcb3acf0d (patch)
tree9df01203ceb1b3ba30052daf2acdcf7e67c2fac3 /man7
parent96605dde982541c62ec899d3efb1dc05c7a7d95c (diff)
downloadman-pages-552c1210136b37d69456490d8ebadb9bcb3acf0d.tar.gz
vsock.7: Add missing structure element
The structure 'struct sockaddr_vm' has additional element 'unsigned char svm_zero[]' since version v3.9-rc1 (include/uapi/linux/vm_sockets.h). Linux kernel checks that this element is zeroed (net/vmw_vsock/vsock_addr.c). Reflect this on the vsock man page. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=205583 Signed-off-by: Mikhail Golubev <Mikhail.Golubev@opensynergy.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/vsock.73
1 files changed, 3 insertions, 0 deletions
diff --git a/man7/vsock.7 b/man7/vsock.7
index 23c67548f7..1450577195 100644
--- a/man7/vsock.7
+++ b/man7/vsock.7
@@ -95,6 +95,7 @@ struct sockaddr_vm {
unsigned short svm_reserved1;
unsigned int svm_port; /* Port # in host byte order */
unsigned int svm_cid; /* Address in host byte order */
+ unsigned char svm_zero[];
};
.EE
.in
@@ -113,6 +114,8 @@ Only a process with the
capability may
.BR bind (2)
to these port numbers.
+.I svm_zero
+is always set to 0.
.PP
There are several special addresses:
.B VMADDR_CID_ANY