home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / net / h / af next >
Encoding:
Text File  |  1995-01-11  |  1.2 KB  |  53 lines

  1. /*
  2.  * $Header: /ax/networking:include/net/af.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/net/af.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    af.h,v $
  8.  * Revision 1.1  95/01/11  10:14:44  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:24:39  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)af.h    1.1 87/07/01 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1980, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)af.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * Address family routines,
  26.  * used in handling generic sockaddr structures.
  27.  *
  28.  * Hash routine is called
  29.  *    af_hash(addr, h);
  30.  *    struct sockaddr *addr; struct afhash *h;
  31.  * producing an afhash structure for addr.
  32.  *
  33.  * Netmatch routine is called
  34.  *    af_netmatch(addr1, addr2);
  35.  * where addr1 and addr2 are sockaddr *.  Returns 1 if network
  36.  * values match, 0 otherwise.
  37.  */
  38. struct afswitch {
  39.     int    (*af_hash)();
  40.     int    (*af_netmatch)();
  41. };
  42.  
  43. struct afhash {
  44.     u_int    afh_hosthash;
  45.     u_int    afh_nethash;
  46. };
  47.  
  48. #ifdef KERNEL
  49. struct    afswitch afswitch[];
  50. #endif
  51.  
  52. /* EOF af.h */
  53.