aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/domain.9
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2012-11-05 09:45:37 +0000
committerKevin Lo <kevlo@FreeBSD.org>2012-11-05 09:45:37 +0000
commit0191c147a5692803e9efea19ead03d6ab576a5c3 (patch)
tree762ad3ebb1722eda8662ea326d2d0941d1ccd45f /share/man/man9/domain.9
parentc19a2a1a9f2103662d584fc67d2422ce62b1a123 (diff)
downloadsrc-0191c147a5692803e9efea19ead03d6ab576a5c3.tar.gz
src-0191c147a5692803e9efea19ead03d6ab576a5c3.zip
Sync with domain and protosw data structures.
Reviewed by: glebius
Notes
Notes: svn path=/head/; revision=242605
Diffstat (limited to 'share/man/man9/domain.9')
-rw-r--r--share/man/man9/domain.910
1 files changed, 9 insertions, 1 deletions
diff --git a/share/man/man9/domain.9 b/share/man/man9/domain.9
index 7d665b3231d4..2a710d00f3ba 100644
--- a/share/man/man9/domain.9
+++ b/share/man/man9/domain.9
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 23, 2012
+.Dd November 5, 2012
.Dt DOMAIN 9
.Os
.Sh NAME
@@ -67,6 +67,8 @@ struct domain {
char *dom_name;
void (*dom_init) /* initialize domain data structures */
(void);
+ void (*dom_destroy) /* cleanup structures / state */
+ (void);
int (*dom_externalize) /* externalize access rights */
(struct mbuf *, struct mbuf **);
void (*dom_dispose) /* dispose of internalized rights */
@@ -75,8 +77,13 @@ struct domain {
struct domain *dom_next;
int (*dom_rtattach) /* initialize routing table */
(void **, int);
+ int (*dom_rtdetach) /* clean up routing table */
+ (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 */
};
.Ed
.Pp
@@ -96,6 +103,7 @@ struct protosw {
pr_ctloutput_t *pr_ctloutput; /* control output (from above) */
/* utility hooks */
pr_init_t *pr_init;
+ pr_destroy_t *pr_destroy;
pr_fasttimo_t *pr_fasttimo; /* fast timeout (200ms) */
pr_slowtimo_t *pr_slowtimo; /* slow timeout (500ms) */
pr_drain_t *pr_drain; /* flush any excess space possible */