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