summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf9
1 files changed, 5 insertions, 4 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 97aaf8f..837c423 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -66,12 +66,13 @@ ip p;
filter testf
int j;
{
- print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len;
+ print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len " source " rta.source;
print "This route was from " rta.from;
j = 7;
j = 17;
- if rta.rip_metric > 15 then
- print "RIP Metric is more than infinity";
+ if rta.rip_metric > 15 then {
+ reject "RIP Metric is more than infinity";
+ }
- accept;
+ accept "ok I take that";
}