summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
Diffstat (limited to 'share/man')
-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
/*