summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-01-18 14:33:04 +0000
committerru <ru@FreeBSD.org>2002-01-18 14:33:04 +0000
commit7bbde3fb1fe2ff7b5efd1426bdbd435faa950f70 (patch)
tree868a544aec0071521723bf9f4a0985c76b46ad04 /share
parentd254e724006714f3f20b2ea58624a58cc97d2874 (diff)
downloadFreeBSD-src-7bbde3fb1fe2ff7b5efd1426bdbd435faa950f70.zip
FreeBSD-src-7bbde3fb1fe2ff7b5efd1426bdbd435faa950f70.tar.gz
Introduce an interface announcement message for the routing
socket so that routing daemons and other interested parties know when an interface is attached/detached. PR: kern/33747 Obtained from: NetBSD MFC after: 2 weeks
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/route.419
1 files changed, 17 insertions, 2 deletions
diff --git a/share/man/man4/route.4 b/share/man/man4/route.4
index cc9df64..ef04cdb 100644
--- a/share/man/man4/route.4
+++ b/share/man/man4/route.4
@@ -32,7 +32,7 @@
.\" From: @(#)route.4 8.6 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
-.Dd October 8, 1996
+.Dd January 18, 2002
.Dt ROUTE 4
.Os
.Sh NAME
@@ -198,6 +198,7 @@ Messages include:
#define RTM_IFINFO 0xe /* iface going up/down etc. */
#define RTM_NEWMADDR 0xf /* mcast group membership being added to if */
#define RTM_DELMADDR 0x10 /* mcast group membership being deleted */
+#define RTM_IFANNOUNCE 0x11 /* iface arrival/departure */
.Ed
.Pp
A message header consists of one of the following:
@@ -245,6 +246,15 @@ struct ifma_msghdr {
int ifmam_flags; /* value of ifa_flags */
u_short ifmam_index; /* index for associated ifp */
};
+
+struct if_announcemsghdr {
+ u_short ifan_msglen; /* to skip over non-understood messages */
+ u_char ifan_version; /* future binary compatibility */
+ u_char ifan_type; /* message type */
+ u_short ifan_index; /* index for associated ifp */
+ char ifan_name[IFNAMSIZ]; /* if name, e.g. "en0" */
+ u_short ifan_what; /* what type of announcement */
+};
.Ed
.Pp
The
@@ -262,7 +272,12 @@ header, the
and
.Dv RTM_DELMADDR
messages use a
-.Ar ifma_msghdr ,
+.Vt ifma_msghdr
+header, the
+.Dv RTM_IFANNOUNCE
+message uses a
+.Vt if_announcemsghdr
+header,
and all other messages use the
.Ar rt_msghdr
header.
OpenPOWER on IntegriCloud