summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2012-02-11 06:02:16 +0000
committerbz <bz@FreeBSD.org>2012-02-11 06:02:16 +0000
commitd05091db1d58d82a2d4c3cb7c1d505fd42a0a13f (patch)
tree6310fd3cdee36212b4f17c1dc1b8c4e3c626722c /lib
parentf55d6eed8c8bfbbc9c0a4422abfe0567efed9473 (diff)
downloadFreeBSD-src-d05091db1d58d82a2d4c3cb7c1d505fd42a0a13f.zip
FreeBSD-src-d05091db1d58d82a2d4c3cb7c1d505fd42a0a13f.tar.gz
Introduce a new NET_RT_IFLISTL API to query the address list. It works
on extended and extensible structs if_msghdrl and ifa_msghdrl. This will allow us to extend both the msghdrl structs and eventually if_data in the future without breaking the ABI. Bump __FreeBSD_version to allow ports to more easily detect the new API. Reviewed by: glebius, brooks MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/sysctl.316
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index a841545..b3737e2 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -28,7 +28,7 @@
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\" $FreeBSD$
.\"
-.Dd April 25, 2010
+.Dd February 11, 2012
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -554,6 +554,7 @@ The fifth and sixth level names are as follows:
.It "NET_RT_DUMP None"
.It "NET_RT_IFLIST 0 or if_index"
.It "NET_RT_IFMALIST 0 or if_index"
+.It "NET_RT_IFLISTL 0 or if_index"
.El
.Pp
The
@@ -561,6 +562,19 @@ The
name returns information about multicast group memberships on all interfaces
if 0 is specified, or for the interface specified by
.Va if_index .
+.Pp
+The
+.Dv NET_RT_IFLISTL
+is like
+.Dv NET_RT_IFLIST ,
+just returning message header structs with additional fields allowing the
+interface to be extended without breaking binary compatibility.
+The
+.Dv NET_RT_IFLISTL
+uses 'l' versions of the message header structures:
+.Va struct if_msghdrl
+and
+.Va struct ifa_msghdrl .
.It Li PF_INET
Get or set various global information about the IPv4
(Internet Protocol version 4).
OpenPOWER on IntegriCloud