]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added examples of pairs and prefixes
authorPavel Machek <pavel@ucw.cz>
Thu, 7 Oct 1999 14:09:50 +0000 (14:09 +0000)
committerPavel Machek <pavel@ucw.cz>
Thu, 7 Oct 1999 14:09:50 +0000 (14:09 +0000)
bird.conf

index 75a2408cced622d391a72c8e8e0e8452adbb95e0..476ccf308f9a91270b5d7127d71d094438b466cd 100644 (file)
--- a/bird.conf
+++ b/bird.conf
@@ -20,7 +20,9 @@ function callme (int arg1; int arg2;)
 }
 
 function startup () 
-int i; 
+int i;
+prefix px;
+
 { 
        print "Bird filter language: selftesting...";
        i = 4; 
@@ -42,6 +44,10 @@ int i;
        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 ];
 
+       print "Testing prefixes: 1.2.3.4/18 = " 1.2.3.4/18;
+       print "Testing pairs: (1,2) = " (1,2);
+
+       print "Testing functions...";
        callme ( 1, 2, );
        callme ( 2, 2, );
        callme ( 3, 2, );
@@ -49,7 +55,7 @@ int i;
        callme ( 7, 2, );
 
        print "done";
-#      quitbird;
+       quitbird;
 #      print "*** FAIL: this is unreachable"; 
 }