home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: /ax/networking:include/net/af.h:networking 1.1 $
- * $Source: /ax/networking:include/net/af.h: $
- *
- * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
- *
- * $Log: af.h,v $
- * Revision 1.1 95/01/11 10:14:44 kwelton
- * Initial revision
- *
- * Revision 1.3 88/06/17 20:24:39 beta
- * Acorn Unix initial beta version
- *
- */
- /* @(#)af.h 1.1 87/07/01 3.2/4.3NFSSRC */
- /*
- * Copyright (c) 1980, 1986 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- *
- * @(#)af.h 7.1 (Berkeley) 6/4/86
- */
-
- /*
- * Address family routines,
- * used in handling generic sockaddr structures.
- *
- * Hash routine is called
- * af_hash(addr, h);
- * struct sockaddr *addr; struct afhash *h;
- * producing an afhash structure for addr.
- *
- * Netmatch routine is called
- * af_netmatch(addr1, addr2);
- * where addr1 and addr2 are sockaddr *. Returns 1 if network
- * values match, 0 otherwise.
- */
- struct afswitch {
- int (*af_hash)();
- int (*af_netmatch)();
- };
-
- struct afhash {
- u_int afh_hosthash;
- u_int afh_nethash;
- };
-
- #ifdef KERNEL
- struct afswitch afswitch[];
- #endif
-
- /* EOF af.h */
-