should check ww_ob always
[unix-history] / usr / src / sbin / routed / af.h
CommitLineData
8c55761d
SL
1/* af.h 4.1 83/01/11 */
2
3/*
4 * Routing table management daemon.
5 */
6
7/*
8 * Per address family routines.
9 */
10struct 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 */
23struct afhash {
24 u_int afh_hosthash; /* host based hash */
25 u_int afh_nethash; /* network based hash */
26};
27
28struct afswitch afswitch[AF_MAX]; /* table proper */