mirror of https://github.com/mkerrisk/man-pages
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:
parent
96605dde98
commit
552c121013
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue