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

Defined struct's

addr defined in line 15; used 18 times
gateway defined in line 25; used 36 times
name defined in line 20; used 30 times

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
NONAME defined in line 36; used 11 times

Usage of this include

Last modified: 1987-02-16
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2545
Valid CSS Valid XHTML 1.0 Strict