From e399b6f6ad91e6f94081dfe694740451100c7a7f Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 17 Apr 2000 10:42:28 +0000 Subject: Path and path matching seem to work, now. --- filter/test.conf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'filter/test.conf') 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() -- cgit v1.2.3