|
|
1.1 root 1: /* af.h 6.1 83/07/29 */
2:
3: /*
4: * Address family routines,
5: * used in handling generic sockaddr structures.
6: *
7: * Hash routine is called
8: * af_hash(addr, h);
9: * struct sockaddr *addr; struct afhash *h;
10: * producing an afhash structure for addr.
11: *
12: * Netmatch routine is called
13: * af_netmatch(addr1, addr2);
14: * where addr1 and addr2 are sockaddr *. Returns 1 if network
15: * values match, 0 otherwise.
16: */
17: struct afswitch {
18: int (*af_hash)();
19: int (*af_netmatch)();
20: };
21:
22: struct afhash {
23: u_int afh_hosthash;
24: u_int afh_nethash;
25: };
26:
27: #ifdef KERNEL
28: struct afswitch afswitch[];
29: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.