1: /*
2: * Copyright (c) 1980, 1986 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that this notice is preserved and that due credit is given
7: * to the University of California at Berkeley. The name of the University
8: * may not be used to endorse or promote products derived from this
9: * software without specific prior written permission. This software
10: * is provided ``as is'' without express or implied warranty.
11: *
12: * @(#)af.h 7.2 (Berkeley) 12/30/87
13: */
14:
15: /*
16: * Address family routines,
17: * used in handling generic sockaddr structures.
18: *
19: * Hash routine is called
20: * af_hash(addr, h);
21: * struct sockaddr *addr; struct afhash *h;
22: * producing an afhash structure for addr.
23: *
24: * Netmatch routine is called
25: * af_netmatch(addr1, addr2);
26: * where addr1 and addr2 are sockaddr *. Returns 1 if network
27: * values match, 0 otherwise.
28: */
29: struct afswitch {
30: int (*af_hash)();
31: int (*af_netmatch)();
32: };
33:
34: struct afhash {
35: u_int afh_hosthash;
36: u_int afh_nethash;
37: };
38:
39: #ifdef SUPERVISOR
40: struct afswitch afswitch[];
41: #endif
Defined variables
Defined struct's
afhash
defined in line
34; used 10 times
Usage of this include