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
|
|
|
|
2003-02-10 00:05:37 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2003-02-10 00:05:37 +03:00
|
|
|
extern struct domain *domains;
|
|
|
|
|
|
|
|
void add_domain (struct domain *dom, int fam);
|
|
|
|
void remove_domain (int fam);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-02-10 00:05:37 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2002-07-12 13:27:23 +04:00
|
|
|
|
|
|
|
#endif /* _SYS_DOMAIN_H */
|