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

afswitch defined in line 34; used 8 times

Defined struct's

afhash defined in line 28; used 10 times
afswitch defined in line 23; used 6 times

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 887
Valid CSS Valid XHTML 1.0 Strict