diff options
author | archie <archie@FreeBSD.org> | 2000-03-13 19:18:10 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-03-13 19:18:10 +0000 |
commit | 6c3f33821c89afaa95bdd52d9eab7a57eead2b50 (patch) | |
tree | 6c522415874d410716fcae67268455bd8b45c0fb /sys/netgraph/ng_iface.h | |
parent | 3b110e37c64d20f8d789797ab25f5171405217af (diff) | |
download | FreeBSD-src-6c3f33821c89afaa95bdd52d9eab7a57eead2b50.zip FreeBSD-src-6c3f33821c89afaa95bdd52d9eab7a57eead2b50.tar.gz |
Updates to the ng_iface(8) netgraph node type:
- Make iface nodes removable on shutdown since FreeBSD now supports
removable interfaces
- Simplify supporting new protocols using family_enqueue(); add a
few new ones including IPv6
- Add support for configurable interface mode using new
NGM_IFACE_POINT2POINT and NGM_IFACE_BROADCAST control messages
- Remove NGM_IFACE_GET_IFADDRS control message; it just duplicates
the functionality of SIOCGIFCONF
Diffstat (limited to 'sys/netgraph/ng_iface.h')
-rw-r--r-- | sys/netgraph/ng_iface.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netgraph/ng_iface.h b/sys/netgraph/ng_iface.h index 946f06e..e856c94 100644 --- a/sys/netgraph/ng_iface.h +++ b/sys/netgraph/ng_iface.h @@ -45,7 +45,7 @@ /* Node type name and magic cookie */ #define NG_IFACE_NODE_TYPE "iface" -#define NGM_IFACE_COOKIE 858821772 +#define NGM_IFACE_COOKIE 858821773 /* Interface base name */ #define NG_IFACE_IFACE_NAME "ng" @@ -53,8 +53,11 @@ /* My hook names */ #define NG_IFACE_HOOK_INET "inet" +#define NG_IFACE_HOOK_INET6 "inet6" #define NG_IFACE_HOOK_ATALK "atalk" /* AppleTalk phase 2 */ #define NG_IFACE_HOOK_IPX "ipx" +#define NG_IFACE_HOOK_ATM "atm" +#define NG_IFACE_HOOK_NATM "natm" #define NG_IFACE_HOOK_NS "ns" /* MTU bounds */ @@ -65,7 +68,8 @@ /* Netgraph commands */ enum { NGM_IFACE_GET_IFNAME = 1, /* returns struct ng_iface_ifname */ - NGM_IFACE_GET_IFADDRS, /* returns list of addresses */ + NGM_IFACE_POINT2POINT, + NGM_IFACE_BROADCAST, }; struct ng_iface_ifname { |