diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-30 07:59:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-30 07:59:53 +0000 |
commit | 3701857f3e720595106b46552a3fde4a34e19585 (patch) | |
tree | beedc2d584cbe1c9f8ed750d86a6c7d7b9b5012f /sbin/route/keywords.h | |
parent | 1621084c749033911cc4485ae5e81d335d1f86ab (diff) |
make keywords.sh generate an enum for the keys
Diffstat (limited to 'sbin/route/keywords.h')
-rw-r--r-- | sbin/route/keywords.h | 93 |
1 files changed, 48 insertions, 45 deletions
diff --git a/sbin/route/keywords.h b/sbin/route/keywords.h index 43cc6293a82..179990eadb2 100644 --- a/sbin/route/keywords.h +++ b/sbin/route/keywords.h @@ -1,4 +1,4 @@ -/* $OpenBSD: keywords.h,v 1.15 2005/03/30 06:12:38 henning Exp $ */ +/* $OpenBSD: keywords.h,v 1.16 2005/03/30 07:59:52 henning Exp $ */ /* WARNING! This file was generated by keywords.sh */ @@ -7,50 +7,53 @@ struct keytab { int kt_i; }; -#define K_ADD 1 -#define K_BLACKHOLE 2 -#define K_CHANGE 3 -#define K_CLONING 4 -#define K_DELETE 5 -#define K_DST 6 -#define K_EXPIRE 7 -#define K_FLUSH 8 -#define K_GATEWAY 9 -#define K_GENMASK 10 -#define K_GET 11 -#define K_HOST 12 -#define K_HOPCOUNT 13 -#define K_IFACE 14 -#define K_INTERFACE 15 -#define K_IFA 16 -#define K_IFP 17 -#define K_INET 18 -#define K_INET6 19 -#define K_IPX 20 -#define K_LABEL 21 -#define K_LINK 22 -#define K_LLINFO 23 -#define K_LOCK 24 -#define K_LOCKREST 25 -#define K_MONITOR 26 -#define K_MPATH 27 -#define K_MTU 28 -#define K_NET 29 -#define K_NETMASK 30 -#define K_NOSTATIC 31 -#define K_PREFIXLEN 32 -#define K_PROTO1 33 -#define K_PROTO2 34 -#define K_RECVPIPE 35 -#define K_REJECT 36 -#define K_RTT 37 -#define K_RTTVAR 38 -#define K_SA 39 -#define K_SENDPIPE 40 -#define K_SHOW 41 -#define K_SSTHRESH 42 -#define K_STATIC 43 -#define K_XRESOLVE 44 +enum { + K_NULL, + K_ADD, + K_BLACKHOLE, + K_CHANGE, + K_CLONING, + K_DELETE, + K_DST, + K_EXPIRE, + K_FLUSH, + K_GATEWAY, + K_GENMASK, + K_GET, + K_HOST, + K_HOPCOUNT, + K_IFACE, + K_INTERFACE, + K_IFA, + K_IFP, + K_INET, + K_INET6, + K_IPX, + K_LABEL, + K_LINK, + K_LLINFO, + K_LOCK, + K_LOCKREST, + K_MONITOR, + K_MPATH, + K_MTU, + K_NET, + K_NETMASK, + K_NOSTATIC, + K_PREFIXLEN, + K_PROTO1, + K_PROTO2, + K_RECVPIPE, + K_REJECT, + K_RTT, + K_RTTVAR, + K_SA, + K_SENDPIPE, + K_SHOW, + K_SSTHRESH, + K_STATIC, + K_XRESOLVE, +}; struct keytab keywords[] = { { "add", K_ADD }, |