summaryrefslogtreecommitdiffstats
path: root/bird.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-07-01 11:11:21 +0200
committerPavel Machek <pavel@ucw.cz>1999-07-01 11:11:21 +0200
commit6542ece91a783e999f61cc51cbe18c8b4c96a36c (patch)
tree061fd97a1a3ae1c45e22a2609a454ed69e14df19 /bird.conf
parent39369d6fbe4b3f73c8110b14623f367c8ffded50 (diff)
downloadbird-6542ece91a783e999f61cc51cbe18c8b4c96a36c.tar
bird-6542ece91a783e999f61cc51cbe18c8b4c96a36c.zip
Function calling in filters works - somehow. Calling syntax is
currently very ugly, beware. Variables are not really local - that needs to be fixed.
Diffstat (limited to 'bird.conf')
-rw-r--r--bird.conf10
1 files changed, 8 insertions, 2 deletions
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";
}