diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-11-03 22:23:01 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-11-03 22:23:01 +0000 |
commit | 6dc7a0cb39d712c7670a113d5a66e9e868eb9872 (patch) | |
tree | 7867ea62f08a511a53659b8fcd305fe6bdad3a03 /bird.conf | |
parent | e5005be2b415ebd9bdea28a3515961f4eb904501 (diff) |
Filters now do not allow function (int arg; int arg2; ).
Diffstat (limited to 'bird.conf')
-rw-r--r-- | bird.conf | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,7 +8,9 @@ router id 62.168.0.1; define xyzzy = 120+10; -function callme (int arg1; int arg2;) +function callme ( int arg1; int arg2 ) +int local1; +int local2; { print "Function callme called arguments " arg1 " and " arg2; @@ -33,8 +35,8 @@ prefix px; if 1 <= 1 then printn "."; else { print "*** FAIL: test 3"; } if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "ok"; - print " data types; must be true: " 1.2.3.4 = 1.2.3.4 "," 1 ~ [1,2,3] "," 5 ~ [1..20] "," 2 ~ [ 1, 2, 3 ] "," 5 ~ [ 4 .. 7 ] "," 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ]; - print " data types: must be false: " 1 ~ [ 2, 3, 4 ] "," 5 ~ [ 2, 3, 4, 7..11 ] "," 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ] "," (1,2) > (2,2) "," (1,1) > (1,1); + print " data types; must be true: " 1.2.3.4 = 1.2.3.4 "," 1 ~ [1,2,3] "," 5 ~ [1..20] "," 2 ~ [ 1, 2, 3 ] "," 5 ~ [ 4 .. 7 ] "," 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ] "," 1.2.3.4 ~ 1.2.3.4/8 "," 1.2.3.4/8 ~ 1.2.3.4/8 "," 1.2.3.4/8 ~ 1.2.3.4/8+ "," 1.2.3.4/16 ~ 1.2.3.4/8{ 15 , 16 }; + print " data types: must be false: " 1 ~ [ 2, 3, 4 ] "," 5 ~ [ 2, 3, 4, 7..11 ] "," 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ] "," (1,2) > (2,2) "," (1,1) > (1,1) "," 1.2.3.4/8 ~ 1.2.3.4/8- "," 1.2.3.4/17 ~ 1.2.3.4/8{ 15 , 16 }; px = 1.2.3.4/18; print "Testing prefixes: 1.2.3.4/18 = " px; @@ -60,6 +62,8 @@ int j; { print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len; print "This route was from " rta.from; + j = 7; + j = 17; accept; } |