]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Disallow rta.net syntax.
authorPavel Machek <pavel@ucw.cz>
Wed, 8 Dec 1999 12:51:26 +0000 (12:51 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 8 Dec 1999 12:51:26 +0000 (12:51 +0000)
filter/config.Y
filter/test.conf

index 9a76c5ef35bc08d0393a3bf8a29868b63ee8a675..e031abd39d844ab9f16b138972a5923fdd8731e7 100644 (file)
@@ -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:
index 799fc60c8e617907046c8a32e7ccd5f598df4417..e2da6d79271b76dce68f597f017ead42a1aa35d1 100644 (file)
@@ -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";
 }