# 2.11BSD#431 - /usr/src/usr.sbin/htable/htable.h

##### Variables

    infile            X

##### Macros

    KW_GATEWAY        X
    KW_HOST           X
    KW_NET            X
    NOADDR            X
    NONAME            X

##### struct's

    addr              X
    gateway           X
    name              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:  *	@(#)htable.h	5.1 (Berkeley) 5/28/85
       7:  */
       8:
       9: #include <sys/types.h>
      10:
      11: /*
      12:  * common definitions for htable
      13:  */
      14:
      15: struct addr {
      16:     u_long  addr_val;
      17:     struct  addr *addr_link;
      18: };
      19:
      20: struct name {
      21:     char    *name_val;
      22:     struct  name *name_link;
      23: };
      24:
      25: struct gateway {
      26:     struct  gateway *g_link;
      27:     struct  gateway *g_dst;     /* connected gateway if metric > 0 */
      28:     struct  gateway *g_firstent;    /* first entry for this gateway */
      29:     struct  name    *g_name;
      30:     int g_net;
      31:     u_long  g_addr;         /* address on g_net */
      32:     int g_metric;       /* hops to this net */
      33: };
      34:
      35: #define NOADDR          ((struct addr *)0)
      36: #define NONAME          ((struct name *)0)
      37:
      38: #define KW_NET      1
      39: #define KW_GATEWAY  2
      40: #define KW_HOST     3
      41:
      42: struct name *newname();
      43: char *malloc();
      44:
      45: char *infile;           /* Input file name */

#### Defined variables

infile defined in line 45; used 5 times

- in /usr/src/usr.sbin/htable/htable.c line 51, 73-75(3)
- in /usr/src/usr.sbin/htable/parse.y line 136

#### Defined struct's

addr defined in line 15; used 18 times

- in line 17(2)
- in /usr/src/usr.sbin/htable/htable.c line 182-187(6), 479-481(4)
- in /usr/src/usr.sbin/htable/parse.y line 18(2), 73(4)

gateway defined in line 25; used 36 times

- in line 26-28(6)
- in /usr/src/usr.sbin/htable/htable.c line 37(2), 226(4), 234(2), 488-503(12), 509-516(8), 561(2)

name defined in line 20; used 30 times

- in line 22(2), 29(2), 42(2)
- in /usr/src/usr.sbin/htable/htable.c line 151-160(8), 183-186(4), 345(2), 466-468(4), 505(2), 563(2)
- in /usr/src/usr.sbin/htable/parse.y line 19(2)

#### Defined macros

KW_GATEWAY defined in line 39; never used
KW_HOST defined in line 40; never used
KW_NET defined in line 38; never used
NOADDR defined in line 35; used 1 times

- in /usr/src/usr.sbin/htable/parse.y line 76

NONAME defined in line 36; used 11 times

- in /usr/src/usr.sbin/htable/htable.c line 162, 194
- in /usr/src/usr.sbin/htable/parse.y line 36-48(7), 93, 103

#### Usage of this include

htable.h used 2 times

- in /usr/src/usr.sbin/htable/htable.c line 25
- in /usr/src/usr.sbin/htable/parse.y line 13

Last modified: 1987-02-16 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 968 |