summaryrefslogtreecommitdiffstats
path: root/proto/rip/config.Y
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rip/config.Y')
-rw-r--r--proto/rip/config.Y6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/rip/config.Y b/proto/rip/config.Y
index c89e59c..3e668f4 100644
--- a/proto/rip/config.Y
+++ b/proto/rip/config.Y
@@ -10,7 +10,7 @@ CF_HDR
CF_DECLS
-CF_KEYWORDS(RIP)
+CF_KEYWORDS(RIP, INFINITY)
CF_GRAMMAR
@@ -25,6 +25,10 @@ rip_proto_start: proto_start RIP {
rip_proto:
rip_proto_start proto_name '{'
| rip_proto proto_item ';'
+ | rip_proto INFINITY expr ';' {
+ if ($3 < 0 || $3 > 64) cf_error("Invalid infinity");
+ ((struct rip_data *) this_proto)->infinity = $3;
+ }
;
CF_CODE