# 2.11BSD#431 - /usr/src/sbin/routed/af.h

##### Variables

    af_max            X
    afswitch          X

##### struct's

    afhash            X
    afswitch          X

       1: /*
       2:  * Copyright (c) 1983 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	5.3 (Berkeley) 4/20/86
       7:  */
       8:
       9: /*
      10:  * Routing table management daemon.
      11:  */
      12:
      13: /*
      14:  * Per address family routines.
      15:  */
      16: struct afswitch {
      17:     int (*af_hash)();       /* returns keys based on address */
      18:     int (*af_netmatch)();   /* verifies net # matching */
      19:     int (*af_output)();     /* interprets address for sending */
      20:     int (*af_portmatch)();  /* packet from some other router? */
      21:     int (*af_portcheck)();  /* packet from privileged peer? */
      22:     int (*af_checkhost)();  /* tells if address is valid */
      23:     int (*af_rtflags)();    /* get flags for route (host or net) */
      24:     int (*af_sendsubnet)(); /* check bounds of subnet broadcast */
      25:     int (*af_canon)();      /* canonicalize address for compares */
      26:     char    *(*af_format)();    /* convert address to string */
      27: };
      28:
      29: /*
      30:  * Structure returned by af_hash routines.
      31:  */
      32: struct afhash {
      33:     u_int   afh_hosthash;       /* host based hash */
      34:     u_int   afh_nethash;        /* network based hash */
      35: };
      36:
      37: struct  afswitch afswitch[];        /* table proper */
      38: int af_max;             /* number of entries in table */

#### Defined variables

af_max defined in line 38; used 8 times

- in /usr/src/sbin/routed/if.c line 73, 100
- in /usr/src/sbin/routed/input.c line 33, 69, 149
- in /usr/src/sbin/routed/tables.c line 42, 77, 116

afswitch defined in line 37; used 19 times

- in /usr/src/sbin/routed/af.c line 35(2)
- in /usr/src/sbin/routed/if.c line 75, 103
- in /usr/src/sbin/routed/input.c line 34, 70, 97, 134, 150-155(2), 162
- in /usr/src/sbin/routed/output.c line 51, 70-71(2)
- in /usr/src/sbin/routed/tables.c line 44, 79, 100, 118-119(2)

#### Defined struct's

afhash defined in line 32; used 8 times

- in /usr/src/sbin/routed/af.c line 41(2)
- in /usr/src/sbin/routed/tables.c line 39(2), 73(2), 110(2)

afswitch defined in line 16; used 6 times

- in line 37(2)
- in /usr/src/sbin/routed/af.c line 29(2)
- in /usr/src/sbin/routed/input.c line 29(2)

#### Usage of this include

af.h used 1 times

- in /usr/src/sbin/routed/defs.h line 29

Last modified: 1987-07-21 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 844 |