1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Infinity is now configurable ammount.

This commit is contained in:
Pavel Machek
1998-12-01 16:17:10 +00:00
parent 50d8424ad1
commit 9b999c393c
3 changed files with 11 additions and 6 deletions

View File

@@ -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