summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-11-15 12:36:22 +0100
committerMartin Mares <mj@ucw.cz>1999-11-15 12:36:22 +0100
commit7d509304b58d7ebf1d53e36a8e656830b409e1e8 (patch)
tree67325755c131c71ba7b016b4e838ebe0a0b88929
parentfd54b602665f71879087faeb0b733fefa9c964bb (diff)
downloadbird-7d509304b58d7ebf1d53e36a8e656830b409e1e8.tar
bird-7d509304b58d7ebf1d53e36a8e656830b409e1e8.zip
An example of how to define enums.
-rw-r--r--nest/config.Y3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y
index 6459462..6a630b2 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -20,6 +20,9 @@ CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT)
CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE)
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID)
+CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT,
+ RIP, RIP_EXT, OSPF, OSPF_EXT, OSPF_IA, OSPF_BOUNDARY, BGP, PIPE)
+
%type <i32> idval
%type <f> imexport
%type <r> rtable