summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf14
1 files changed, 11 insertions, 3 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 94ed556..55cbf33 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -31,10 +31,18 @@ function fifteen()
function paths()
bgpmask p;
+bgppath p2;
{
- print "Testing paths";
- p = / 1 2 3 4 /;
- print p;
+ p = / 4 3 2 1 /;
+ print "Testing path masks: ", p;
+ p2 = prepend( + empty +, 1 );
+ p2 = prepend( p2, 2 );
+ p2 = prepend( p2, 3 );
+ p2 = prepend( p2, 4 );
+ print "Testing paths: ", p2;
+ print "Should be true: ", p2 ~ p;
+ p2 = prepend( p2, 5 );
+ print "Should be false: ", p2 ~ p;
}
function startup()