summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-08-05 22:40:36 +0000
committermillert <millert@openbsd.org>1998-08-05 22:40:36 +0000
commit070cc21f24635b95c9a805fee9a4117b0edf70da (patch)
treee3f1cf5cd5e91677a365d28da3c8ed084ae360bb
parentfix ifc_len == 0 hack for variable size structures. (diff)
downloadwireguard-openbsd-070cc21f24635b95c9a805fee9a4117b0edf70da.tar.xz
wireguard-openbsd-070cc21f24635b95c9a805fee9a4117b0edf70da.zip
mention new SIOCGIFCONF semantics
-rw-r--r--share/man/man4/netintro.414
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man4/netintro.4 b/share/man/man4/netintro.4
index d28d8965770..9b888e60d00 100644
--- a/share/man/man4/netintro.4
+++ b/share/man/man4/netintro.4
@@ -290,7 +290,19 @@ field should be initially set to the size of the buffer
pointed to by
.Ar ifc_buf .
On return it will contain the length, in bytes, of the
-configuration list.
+configuration list. Alternately, if the
+.Ar ifc_len
+passed in is set to 0,
+.Dv SIOCGIFCONF
+will set
+.Ar ifc_len
+to the size that
+.Ar ifc_buf
+needs to be to fit the entire configuration list and not
+fill in the other paramaters.
+This is useful for determining the exact size that
+.Ar ifc_buf
+needs to be in advance.
.El
.Bd -literal
/*