Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/domain.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct mbuf; | struct mbuf; | ||||
struct ifnet; | struct ifnet; | ||||
struct socket; | struct socket; | ||||
struct rib_head; | struct rib_head; | ||||
struct domain { | struct domain { | ||||
int dom_family; /* AF_xxx */ | int dom_family; /* AF_xxx */ | ||||
u_int dom_nprotosw; /* length of dom_protosw[] */ | |||||
char *dom_name; | char *dom_name; | ||||
int dom_flags; | int dom_flags; | ||||
int (*dom_probe)(void); /* check for support (optional) */ | int (*dom_probe)(void); /* check for support (optional) */ | ||||
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 domain *dom_next; | struct domain *dom_next; | ||||
struct rib_head *(*dom_rtattach) /* initialize routing table */ | struct rib_head *(*dom_rtattach) /* initialize routing table */ | ||||
(uint32_t); | (uint32_t); | ||||
void (*dom_rtdetach) /* clean up routing table */ | void (*dom_rtdetach) /* clean up routing table */ | ||||
(struct rib_head *); | (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 */ | ||||
struct protosw *dom_protosw[]; | |||||
}; | }; | ||||
/* dom_flags */ | /* dom_flags */ | ||||
#define DOMF_SUPPORTED 0x0001 /* System supports this domain. */ | #define DOMF_SUPPORTED 0x0001 /* System supports this domain. */ | ||||
#define DOMF_INITED 0x0002 /* Initialized in the default vnet. */ | #define DOMF_INITED 0x0002 /* Initialized in the default vnet. */ | ||||
#define DOMF_UNLOADABLE 0x0004 /* Can be unloaded */ | #define DOMF_UNLOADABLE 0x0004 /* Can be unloaded */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
Show All 20 Lines |