diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-05 22:40:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-05 22:40:37 +0000 |
commit | c2f2c59031f64ef41a4d4b2efbdea788fcd725e9 (patch) | |
tree | 0e0a2f008ec5ec9198782c1f4da0caf758d41d2f /share/man/man4 | |
parent | c5f08971801dc9a42090c29a763ffec17063df80 (diff) |
mention new SIOCGIFCONF semantics
Diffstat (limited to 'share/man/man4')
-rw-r--r-- | share/man/man4/netintro.4 | 14 |
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 /* |