diff options
author | ume <ume@FreeBSD.org> | 2003-10-17 15:46:31 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-17 15:46:31 +0000 |
commit | babf2c3ec01f429fc11fe95261ac8db6488c3788 (patch) | |
tree | 7b94f0bf6e27699cee5534d28881bd0e62278adb /sys/sys/domain.h | |
parent | 81586929f375fc23eb8749aebf4eba5c6582b35a (diff) | |
download | FreeBSD-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.h | 4 |
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 |