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>
This commit is contained in:
Mikhail Golubev 2019-11-19 18:31:34 +01:00 committed by Michael Kerrisk
parent 96605dde98
commit 552c121013
1 changed files with 3 additions and 0 deletions

View File

@ -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