# 2.11BSD#431 - /usr/src/sys/net/af.h

##### Variables

    afswitch          X

##### struct's

    afhash            X
    afswitch          X

       1: /*
       2:  * Copyright (c) 1980, 1986 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)af.h	7.2 (Berkeley) 12/30/87
      13:  */
      14:
      15: /*
      16:  * Address family routines,
      17:  * used in handling generic sockaddr structures.
      18:  *
      19:  * Hash routine is called
      20:  *	af_hash(addr, h);
      21:  *	struct sockaddr *addr; struct afhash *h;
      22:  * producing an afhash structure for addr.
      23:  *
      24:  * Netmatch routine is called
      25:  *	af_netmatch(addr1, addr2);
      26:  * where addr1 and addr2 are sockaddr *.  Returns 1 if network
      27:  * values match, 0 otherwise.
      28:  */
      29: struct afswitch {
      30:     int (*af_hash)();
      31:     int (*af_netmatch)();
      32: };
      33:
      34: struct afhash {
      35:     u_int   afh_hosthash;
      36:     u_int   afh_nethash;
      37: };
      38:
      39: #ifdef SUPERVISOR
      40: struct  afswitch afswitch[];
      41: #endif

#### Defined variables

afswitch defined in line 40; used 8 times

- in /usr/src/sys/net/af.c line 56(2)
- in /usr/src/sys/net/if.c line 141
- in /usr/src/sys/net/route.c line 51-52(2), 154, 228, 236

#### Defined struct's

afhash defined in line 34; used 10 times

- in /usr/src/sys/net/af.c line 66(2)
- in /usr/src/sys/net/route.c line 43(2), 218(2)
- in /usr/src/sys/netinet/in.c line 33(2)
- in /usr/src/sys/netns/ns.c line 36(2)

afswitch defined in line 29; used 6 times

- in line 40(2)
- in /usr/src/sys/net/af.c line 45(2), 54(2)

#### Usage of this include

af.h used 5 times

- in /usr/src/sys/net/af.c line 20
- in /usr/src/sys/net/if.c line 27
- in /usr/src/sys/net/route.c line 25
- in /usr/src/sys/netinet/in.c line 26
- in /usr/src/sys/netns/ns.c line 27

Last modified: 1988-04-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 912 |