From 9b999c393c6f89a73d5fe0f4e152b77ca0afb1b2 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 1 Dec 1998 16:17:10 +0000 Subject: Infinity is now configurable ammount. --- proto/rip/config.Y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'proto/rip/config.Y') 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 -- cgit v1.2.3