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