]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add ROA_* constants values to grammar of configuration
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Wed, 20 Jan 2016 14:06:19 +0000 (15:06 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Wed, 20 Jan 2016 15:46:58 +0000 (16:46 +0100)
Add ROA_UNKNOWN, ROA_VALID and ROA_INVALID

filter/filter.h
nest/config.Y
nest/route.h

index c100a79aac6cb83211ca4da79c15926ff9a59561..1875f314ffb6b121859f13180a5cb496697e1480 100644 (file)
@@ -133,7 +133,7 @@ void val_format(struct f_val v, buffer *buf);
 #define T_ENUM_SCOPE 0x32
 #define T_ENUM_RTC 0x33
 #define T_ENUM_RTD 0x34
-/*#define T_ENUM_ROA 0x35*/
+#define T_ENUM_ROA 0x35
 /* new enums go here */
 #define T_ENUM_EMPTY 0x3f      /* Special hack for atomic_aggr */
 
index 06d5c3637004f85ecd9fba6afedc686274a0e30e..d6aa9653044d6ee8b498d54396e18190262fe906 100644 (file)
@@ -68,6 +68,7 @@ CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIREC
 CF_ENUM(T_ENUM_SCOPE, SCOPE_, HOST, LINK, SITE, ORGANIZATION, UNIVERSE, UNDEFINED)
 CF_ENUM(T_ENUM_RTC, RTC_, UNICAST, BROADCAST, MULTICAST, ANYCAST)
 CF_ENUM(T_ENUM_RTD, RTD_, ROUTER, DEVICE, BLACKHOLE, UNREACHABLE, PROHIBIT, MULTIPATH)
+CF_ENUM(T_ENUM_ROA, ROA_, UNKNOWN, VALID, INVALID)
 
 %type <i32> idval
 %type <f> imexport
index 3a8788a7c12be56863d75a95fbc7055b9c6a3d1b..c6e9cb41cb12aa4d486f7b0f1231e6077486018b 100644 (file)
@@ -563,6 +563,10 @@ extern struct protocol *attr_class_to_protocol[EAP_MAX];
 #define DEF_PREF_PIPE          70      /* Routes piped from other tables */
 #define DEF_PREF_INHERITED     10      /* Routes inherited from other routing daemons */
 
+#define ROA_UNKNOWN    0
+#define ROA_VALID      1
+#define ROA_INVALID    2
+
 #if 0
 
 /*
@@ -617,10 +621,6 @@ struct roa_show_data {
   u32 asn;                             /* Filter ASN, 0 -> all */
 };
 
-#define ROA_UNKNOWN    0
-#define ROA_VALID      1
-#define ROA_INVALID    2
-
 #define ROA_SRC_ANY    0
 #define ROA_SRC_CONFIG 1
 #define ROA_SRC_DYNAMIC        2