1: /*
2: * Copyright (c) 1980, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)af.h 7.1 (Berkeley) 6/4/86
7: */
8:
9: /*
10: * Address family routines,
11: * used in handling generic sockaddr structures.
12: *
13: * Hash routine is called
14: * af_hash(addr, h);
15: * struct sockaddr *addr; struct afhash *h;
16: * producing an afhash structure for addr.
17: *
18: * Netmatch routine is called
19: * af_netmatch(addr1, addr2);
20: * where addr1 and addr2 are sockaddr *. Returns 1 if network
21: * values match, 0 otherwise.
22: */
23: struct afswitch {
24: int (*af_hash)();
25: int (*af_netmatch)();
26: };
27:
28: struct afhash {
29: u_int afh_hosthash;
30: u_int afh_nethash;
31: };
32:
33: #ifdef KERNEL
34: struct afswitch afswitch[];
35: #endif
Defined variables
Defined struct's
afhash
defined in line
28; used 10 times
Usage of this include