summaryrefslogtreecommitdiffstats
path: root/sys/sys
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 /sys/sys
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 'sys/sys')
-rw-r--r--sys/sys/param.h2
-rw-r--r--sys/sys/socket.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 11421a5..bebec50 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -58,7 +58,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1000007 /* Master, propagated to newvers */
+#define __FreeBSD_version 1000008 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 7800c42..6b84667 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -396,7 +396,9 @@ struct sockproto {
#define NET_RT_FLAGS 2 /* by flags, e.g. RESOLVING */
#define NET_RT_IFLIST 3 /* survey interface list */
#define NET_RT_IFMALIST 4 /* return multicast address list */
-#define NET_RT_MAXID 5
+#define NET_RT_IFLISTL 5 /* Survey interface list, using 'l'en
+ * versions of msghdr structs. */
+#define NET_RT_MAXID 6
#define CTL_NET_RT_NAMES { \
{ 0, 0 }, \
@@ -404,6 +406,7 @@ struct sockproto {
{ "flags", CTLTYPE_STRUCT }, \
{ "iflist", CTLTYPE_STRUCT }, \
{ "ifmalist", CTLTYPE_STRUCT }, \
+ { "iflist2", CTLTYPE_STRUCT }, \
}
#endif /* __BSD_VISIBLE */
OpenPOWER on IntegriCloud