Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/domain.h
Show All 39 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* Forward structure declarations for function prototypes [sic]. | * Forward structure declarations for function prototypes [sic]. | ||||
*/ | */ | ||||
struct mbuf; | struct mbuf; | ||||
struct ifnet; | struct ifnet; | ||||
struct socket; | struct socket; | ||||
struct rib_head; | |||||
struct domain { | struct domain { | ||||
int dom_family; /* AF_xxx */ | int dom_family; /* AF_xxx */ | ||||
char *dom_name; | char *dom_name; | ||||
void (*dom_init) /* initialize domain data structures */ | void (*dom_init) /* initialize domain data structures */ | ||||
(void); | (void); | ||||
void (*dom_destroy) /* cleanup structures / state */ | void (*dom_destroy) /* cleanup structures / state */ | ||||
(void); | (void); | ||||
int (*dom_externalize) /* externalize access rights */ | int (*dom_externalize) /* externalize access rights */ | ||||
(struct mbuf *, struct mbuf **, int); | (struct mbuf *, struct mbuf **, int); | ||||
void (*dom_dispose) /* dispose of internalized rights */ | void (*dom_dispose) /* dispose of internalized rights */ | ||||
(struct socket *); | (struct socket *); | ||||
struct protosw *dom_protosw, *dom_protoswNPROTOSW; | struct protosw *dom_protosw, *dom_protoswNPROTOSW; | ||||
struct domain *dom_next; | struct domain *dom_next; | ||||
int (*dom_rtattach) /* initialize routing table */ | struct rib_head *(*dom_rtattach) /* initialize routing table */ | ||||
(void **, int, u_int); | (uint32_t); | ||||
int (*dom_rtdetach) /* clean up routing table */ | void (*dom_rtdetach) /* clean up routing table */ | ||||
(void **, int); | (struct rib_head *); | ||||
void *(*dom_ifattach)(struct ifnet *); | void *(*dom_ifattach)(struct ifnet *); | ||||
void (*dom_ifdetach)(struct ifnet *, void *); | void (*dom_ifdetach)(struct ifnet *, void *); | ||||
int (*dom_ifmtu)(struct ifnet *); | int (*dom_ifmtu)(struct ifnet *); | ||||
/* af-dependent data on ifnet */ | /* af-dependent data on ifnet */ | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
extern int domain_init_status; | extern int domain_init_status; | ||||
Show All 29 Lines |