xref: /original-bsd/sys/sys/domain.h (revision c7f94de1)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)domain.h	7.5 (Berkeley) 07/09/92
8  */
9 
10 /*
11  * Structure per communications domain.
12  */
13 
14 #ifdef __STDC__
15 /*
16  * Forward structure declarations for function prototypes [sic].
17  */
18 struct	mbuf;
19 #endif
20 
21 struct	domain {
22 	int	dom_family;		/* AF_xxx */
23 	char	*dom_name;
24 	int	(*dom_init)		/* initialize domain data structures */
25 		__P(());
26 	int	(*dom_externalize)	/* externalize access rights */
27 		__P((struct mbuf *));
28 	int	(*dom_dispose)		/* dispose of internalized rights */
29 		__P((struct mbuf *));
30 	struct	protosw *dom_protosw, *dom_protoswNPROTOSW;
31 	struct	domain *dom_next;
32 	int	(*dom_rtattach)		/* initialize routing table */
33 		__P((void **, int));
34 	int	dom_rtoffset;		/* an arg to rtattach, in bits */
35 	int	dom_maxrtkey;		/* for routing layer */
36 };
37 
38 #ifdef KERNEL
39 struct	domain *domains;
40 #endif
41