As discussed some time ago, add a "show" sub-command.

Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
This commit is contained in:
gwr 1996-11-15 18:45:23 +00:00
parent a54521537f
commit 13410f03ee
1 changed files with 53 additions and 77 deletions

View File

@ -1,78 +1,54 @@
/* $NetBSD: keywords.h,v 1.2 1996/11/15 18:45:23 gwr Exp $ */
/* WARNING! This file was generated by keywords.sh */
struct keytab {
char *kt_cp;
int kt_i;
} keywords[];
#define K_ADD 1 #define K_ADD 1
{"add", K_ADD}, #define K_BLACKHOLE 2
#define K_CHANGE 2 #define K_CHANGE 3
{"change", K_CHANGE}, #define K_CLONING 4
#define K_CLONING 3 #define K_DELETE 5
{"cloning", K_CLONING}, #define K_DST 6
#define K_DELETE 4 #define K_EXPIRE 7
{"delete", K_DELETE}, #define K_FLUSH 8
#define K_DST 5 #define K_GATEWAY 9
{"dst", K_DST}, #define K_GENMASK 10
#define K_EXPIRE 6 #define K_GET 11
{"expire", K_EXPIRE}, #define K_HOST 12
#define K_FLUSH 7 #define K_HOPCOUNT 13
{"flush", K_FLUSH}, #define K_IFACE 14
#define K_GATEWAY 8 #define K_INTERFACE 15
{"gateway", K_GATEWAY}, #define K_IFA 16
#define K_GENMASK 9 #define K_IFP 17
{"genmask", K_GENMASK}, #define K_INET 18
#define K_GET 10 #define K_ISO 19
{"get", K_GET}, #define K_LINK 20
#define K_HOST 11 #define K_LLINFO 21
{"host", K_HOST}, #define K_LOCK 22
#define K_HOPCOUNT 12 #define K_LOCKREST 23
{"hopcount", K_HOPCOUNT}, #define K_MASK 24
#define K_IFACE 13 #define K_MONITOR 25
{"iface", K_IFACE}, #define K_MTU 26
#define K_INTERFACE 14 #define K_NET 27
{"interface", K_INTERFACE}, #define K_NETMASK 28
#define K_IFA 15 #define K_NOSTATIC 29
{"ifa", K_IFA}, #define K_OSI 30
#define K_IFP 16 #define K_PROTO1 31
{"ifp", K_IFP}, #define K_PROTO2 32
#define K_INET 17 #define K_RECVPIPE 33
{"inet", K_INET}, #define K_REJECT 34
#define K_ISO 18 #define K_RTT 35
{"iso", K_ISO}, #define K_RTTVAR 36
#define K_LINK 19 #define K_SA 37
{"link", K_LINK}, #define K_SENDPIPE 38
#define K_LOCK 20 #define K_SHOW 39
{"lock", K_LOCK}, #define K_SSTHRESH 40
#define K_LOCKREST 21 #define K_STATIC 41
{"lockrest", K_LOCKREST}, #define K_X25 42
#define K_MASK 22 #define K_XNS 43
{"mask", K_MASK}, #define K_XRESOLVE 44
#define K_MONITOR 23
{"monitor", K_MONITOR},
#define K_MTU 24
{"mtu", K_MTU},
#define K_NET 25
{"net", K_NET},
#define K_NETMASK 26
{"netmask", K_NETMASK},
#define K_OSI 27
{"osi", K_OSI},
#define K_PROTO1 28
{"proto1", K_PROTO1},
#define K_PROTO2 29
{"proto2", K_PROTO2},
#define K_RECVPIPE 30
{"recvpipe", K_RECVPIPE},
#define K_REJECT 31
{"reject", K_REJECT},
#define K_RTT 32
{"rtt", K_RTT},
#define K_RTTVAR 33
{"rttvar", K_RTTVAR},
#define K_SA 34
{"sa", K_SA},
#define K_SENDPIPE 35
{"sendpipe", K_SENDPIPE},
#define K_SSTHRESH 36
{"ssthresh", K_SSTHRESH},
#define K_X25 37
{"x25", K_X25},
#define K_XNS 38
{"xns", K_XNS},
#define K_XRESOLVE 39
{"xresolve", K_XRESOLVE},