diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-07-01 09:11:21 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-07-01 09:11:21 +0000 |
commit | 6542ece91a783e999f61cc51cbe18c8b4c96a36c (patch) | |
tree | 061fd97a1a3ae1c45e22a2609a454ed69e14df19 /bird.conf | |
parent | 39369d6fbe4b3f73c8110b14623f367c8ffded50 (diff) |
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.conf | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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"; } |