xref: /original-bsd/sbin/routed/af.h (revision 92d3de31)
1 /*	af.h	4.1	83/01/11	*/
2 
3 /*
4  * Routing table management daemon.
5  */
6 
7 /*
8  * Per address family routines.
9  */
10 struct afswitch {
11 	int	(*af_hash)();		/* returns keys based on address */
12 	int	(*af_netmatch)();	/* verifies net # matching */
13 	int	(*af_output)();		/* interprets address for sending */
14 	int	(*af_portmatch)();	/* packet from some other router? */
15 	int	(*af_portcheck)();	/* packet from priviledged peer? */
16 	int	(*af_checkhost)();	/* tells if address for host or net */
17 	int	(*af_canon)();		/* canonicalize address for compares */
18 };
19 
20 /*
21  * Structure returned by af_hash routines.
22  */
23 struct afhash {
24 	u_int	afh_hosthash;		/* host based hash */
25 	u_int	afh_nethash;		/* network based hash */
26 };
27 
28 struct	afswitch afswitch[AF_MAX];	/* table proper */
29