2002-07-09 16:24:59 +04:00
|
|
|
/* domain.h */
|
|
|
|
|
|
|
|
/* A domain is just a container for like minded protocols! */
|
|
|
|
|
2002-07-12 13:27:23 +04:00
|
|
|
#ifndef _SYS_DOMAIN_H
|
|
|
|
#define _SYS_DOMAIN_H
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
struct domain {
|
2002-07-12 13:27:23 +04:00
|
|
|
int dom_family; /* AF_INET and so on */
|
2002-07-09 16:24:59 +04:00
|
|
|
char *dom_name;
|
|
|
|
|
2002-07-12 13:27:23 +04:00
|
|
|
void (*dom_init)(void); /* initialise */
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
struct protosw *dom_protosw; /* the protocols we have */
|
|
|
|
struct domain *dom_next;
|
|
|
|
|
|
|
|
int (*dom_rtattach)(void **, int);
|
|
|
|
int dom_rtoffset;
|
|
|
|
int dom_maxrtkey;
|
|
|
|
};
|
|
|
|
|
2002-07-12 13:27:23 +04:00
|
|
|
#ifdef _KERNEL_MODE
|
|
|
|
struct domain *domains;
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-12 13:27:23 +04:00
|
|
|
void add_domain (struct domain *dom, int fam);
|
|
|
|
void remove_domain (int fam);
|
|
|
|
#endif /* _KERNEL_MODE */
|
|
|
|
|
|
|
|
#endif /* _SYS_DOMAIN_H */
|