aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-11-21 10:19:09 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-11-21 10:52:14 +0100
commitcf4e631c960d3e59c83069830335700f4b112cbd (patch)
treedf16579016d40d9c1489c276143e9864f794abf5 /man7
parent4475e3f07abc2ad136a138e29d04caca3244dabe (diff)
downloadman-pages-cf4e631c960d3e59c83069830335700f4b112cbd.tar.gz
vsock.7: Show size of svm_zero field in sockaddr_vm structure
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/vsock.76
1 files changed, 5 insertions, 1 deletions
diff --git a/man7/vsock.7 b/man7/vsock.7
index c917266b58..1adc3084b2 100644
--- a/man7/vsock.7
+++ b/man7/vsock.7
@@ -95,7 +95,11 @@ 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[];
+ unsigned char svm_zero[sizeof(struct sockaddr) \-
+ sizeof(sa_family_t) \-
+ sizeof(unsigned short) \-
+ sizeof(unsigned int) \-
+ sizeof(unsigned int)];
};
.EE
.in