|
|
1.1 ! root 1: /* @(#)htable.h 4.3 (Berkeley) 11/3/83 */ ! 2: ! 3: #include <sys/types.h> ! 4: ! 5: /* ! 6: * common definitions for htable ! 7: */ ! 8: ! 9: struct addr { ! 10: u_long addr_val; ! 11: struct addr *addr_link; ! 12: }; ! 13: ! 14: struct name { ! 15: char *name_val; ! 16: struct name *name_link; ! 17: }; ! 18: ! 19: struct gateway { ! 20: struct gateway *g_link; ! 21: struct gateway *g_dst; /* connected gateway if metric > 0 */ ! 22: struct gateway *g_firstent; /* first entry for this gateway */ ! 23: struct name *g_name; ! 24: int g_net; ! 25: u_long g_addr; /* address on g_net */ ! 26: int g_metric; /* hops to this net */ ! 27: }; ! 28: ! 29: #define NOADDR ((struct addr *)0) ! 30: #define NONAME ((struct name *)0) ! 31: ! 32: #define KW_NET 1 ! 33: #define KW_GATEWAY 2 ! 34: #define KW_HOST 3 ! 35: ! 36: struct name *newname(); ! 37: char *malloc(); ! 38: ! 39: char *infile; /* Input file name */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.