install with -s
[unix-history] / usr / src / old / htable / htable.h
CommitLineData
ab6da654
DF
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) %G%
7 */
d5d4aed4
SL
8
9#include <sys/types.h>
10
11/*
12 * common definitions for htable
13 */
14
15struct addr {
16 u_long addr_val;
17 struct addr *addr_link;
18};
19
20struct name {
21 char *name_val;
22 struct name *name_link;
23};
24
99d3ae94
MK
25struct 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
cd08f4dd
SL
35#define NOADDR ((struct addr *)0)
36#define NONAME ((struct name *)0)
d5d4aed4
SL
37
38#define KW_NET 1
39#define KW_GATEWAY 2
40#define KW_HOST 3
41
42struct name *newname();
43char *malloc();
44
45char *infile; /* Input file name */