summaryrefslogtreecommitdiffstats
path: root/sys/sys/domain.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-17 15:46:31 +0000
committerume <ume@FreeBSD.org>2003-10-17 15:46:31 +0000
commitbabf2c3ec01f429fc11fe95261ac8db6488c3788 (patch)
tree7b94f0bf6e27699cee5534d28881bd0e62278adb /sys/sys/domain.h
parent81586929f375fc23eb8749aebf4eba5c6582b35a (diff)
downloadFreeBSD-src-babf2c3ec01f429fc11fe95261ac8db6488c3788.zip
FreeBSD-src-babf2c3ec01f429fc11fe95261ac8db6488c3788.tar.gz
- add dom_if{attach,detach} framework.
- transition to use ifp->if_afdata. Obtained from: KAME
Diffstat (limited to 'sys/sys/domain.h')
-rw-r--r--sys/sys/domain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/domain.h b/sys/sys/domain.h
index 77b8ad8..b5e29c9 100644
--- a/sys/sys/domain.h
+++ b/sys/sys/domain.h
@@ -45,6 +45,7 @@
* Forward structure declarations for function prototypes [sic].
*/
struct mbuf;
+struct ifnet;
struct domain {
int dom_family; /* AF_xxx */
@@ -61,6 +62,9 @@ struct domain {
(void **, int);
int dom_rtoffset; /* an arg to rtattach, in bits */
int dom_maxrtkey; /* for routing layer */
+ void *(*dom_ifattach)(struct ifnet *);
+ void (*dom_ifdetach)(struct ifnet *, void *);
+ /* af-dependent data on ifnet */
};
#ifdef _KERNEL
OpenPOWER on IntegriCloud