diff options
author | Pavel Machek <pavel@ucw.cz> | 1998-12-01 16:17:10 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1998-12-01 16:17:10 +0000 |
commit | 9b999c393c6f89a73d5fe0f4e152b77ca0afb1b2 (patch) | |
tree | 4ffb78e20348f32f09a45e116de72fa640fa8e9f /proto/rip/config.Y | |
parent | 50d8424ad1f40f9979214c1d6cbf8e290ba9a5cb (diff) |
Infinity is now configurable ammount.
Diffstat (limited to 'proto/rip/config.Y')
-rw-r--r-- | proto/rip/config.Y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/rip/config.Y b/proto/rip/config.Y index c89e59c8..3e668f4b 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 |