From 2e18b87dcf5d4029d11bc46b37d601aae4f97174 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 8 Dec 1999 12:51:26 +0000 Subject: Disallow rta.net syntax. --- filter/config.Y | 3 +-- filter/test.conf | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'filter') diff --git a/filter/config.Y b/filter/config.Y index 9a76c5e..e031abd 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -269,8 +269,7 @@ any_dynamic: | RIP_TAG { $$ = f_new_inst(); $$->aux = T_INT; $$->a2.i = EA_RIP_TAG; } ; -rtadot: /* EMPTY */ - | RTA '.' { } +rtadot: /* EMPTY, we are not permitted RTA. prefix */ ; term: diff --git a/filter/test.conf b/filter/test.conf index 799fc60..e2da6d7 100644 --- a/filter/test.conf +++ b/filter/test.conf @@ -66,15 +66,15 @@ ip p; filter testf int j; { - print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len " source " rta.source; - print "This route was from " rta.from; + print "Heya, filtering route to " net.ip " prefixlen " net.len " source " source; + print "This route was from " from; j = 7; j = 17; - if rta.rip_metric > 15 then { + if rip_metric > 15 then { reject "RIP Metric is more than infinity"; } - rta.rip_metric = 14; - unset(rta.rip_metric); + rip_metric = 14; + unset(rip_metric); accept "ok I take that"; } -- cgit v1.2.3