From 36bbfc704c7d2153537751e24413db9b9c97bc58 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 19 Apr 1999 18:41:56 +0000 Subject: Updated filters: they now actually see IP/pxlen of net being filtered, gateway, and who told us, so they can do usefull jobs from now on. --- bird.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bird.conf') diff --git a/bird.conf b/bird.conf index 2129bab..850b53e 100644 --- a/bird.conf +++ b/bird.conf @@ -32,15 +32,16 @@ int i; print " false = " 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ]; print "done"; - quitbird; +# quitbird; print "*** FAIL: this is unreachable"; } filter testf int j; { - j = const(4321); - print j; + print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len; + print "This route was from " rta.from; + accept; } protocol rip MyRIP_test { @@ -50,6 +51,7 @@ protocol rip MyRIP_test { period 5; garbagetime 30; interface "*"; + export filter testf; } protocol device { -- cgit v1.2.3