Disallow rta.net syntax.
This commit is contained in:
parent
3df563fa4c
commit
2e18b87dcf
2 changed files with 6 additions and 7 deletions
|
@ -269,8 +269,7 @@ any_dynamic:
|
||||||
| RIP_TAG { $$ = f_new_inst(); $$->aux = T_INT; $$->a2.i = EA_RIP_TAG; }
|
| RIP_TAG { $$ = f_new_inst(); $$->aux = T_INT; $$->a2.i = EA_RIP_TAG; }
|
||||||
;
|
;
|
||||||
|
|
||||||
rtadot: /* EMPTY */
|
rtadot: /* EMPTY, we are not permitted RTA. prefix */
|
||||||
| RTA '.' { }
|
|
||||||
;
|
;
|
||||||
|
|
||||||
term:
|
term:
|
||||||
|
|
|
@ -66,15 +66,15 @@ ip p;
|
||||||
filter testf
|
filter testf
|
||||||
int j;
|
int j;
|
||||||
{
|
{
|
||||||
print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len " source " rta.source;
|
print "Heya, filtering route to " net.ip " prefixlen " net.len " source " source;
|
||||||
print "This route was from " rta.from;
|
print "This route was from " from;
|
||||||
j = 7;
|
j = 7;
|
||||||
j = 17;
|
j = 17;
|
||||||
if rta.rip_metric > 15 then {
|
if rip_metric > 15 then {
|
||||||
reject "RIP Metric is more than infinity";
|
reject "RIP Metric is more than infinity";
|
||||||
}
|
}
|
||||||
rta.rip_metric = 14;
|
rip_metric = 14;
|
||||||
unset(rta.rip_metric);
|
unset(rip_metric);
|
||||||
|
|
||||||
accept "ok I take that";
|
accept "ok I take that";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue