From 6542ece91a783e999f61cc51cbe18c8b4c96a36c Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 1 Jul 1999 09:11:21 +0000 Subject: Function calling in filters works - somehow. Calling syntax is currently very ugly, beware. Variables are not really local - that needs to be fixed. --- bird.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bird.conf') diff --git a/bird.conf b/bird.conf index d315f0c..466b45c 100644 --- a/bird.conf +++ b/bird.conf @@ -8,6 +8,11 @@ router id 62.168.0.1; define xyzzy = 120+10; +function callme (int arg1; int arg2;) +{ + print "Function callme called arguments " arg1 " and " arg2; +} + function startup () int i; { @@ -30,9 +35,10 @@ int i; print " false = " 5 ~ [ 2, 3, 4, 7..11 ]; print "IPsets: true = " 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ]; print " false = " 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ]; - + + callme ( 1, 2, ); print "done"; -# quitbird; + quitbird; print "*** FAIL: this is unreachable"; } -- cgit v1.2.3