summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-15 14:19:26 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-15 14:19:26 +0200
commitcbfd671f114a96095f021662ad1cf0eaa6d089c1 (patch)
tree9995484ebaf0e8d9078e085210802e9477e9f807 /filter/test.conf
parentcc590a11a7a285463dff89d0bd677d0762dd8e45 (diff)
downloadbird-cbfd671f114a96095f021662ad1cf0eaa6d089c1.tar
bird-cbfd671f114a96095f021662ad1cf0eaa6d089c1.zip
Allow accessing defined symbols.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 37cff13..d734d57 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -65,13 +65,16 @@ function bla()
return 15;
}
+define four=4;
+define onetwo=1.2.3.4;
+
function __startup()
int i;
prefix px;
ip p;
{
print "Testing filter language:";
- i = 4;
+ i = four;
i = 1230 + i;
i = ( i + 0 );
print " arithmetics: 1234 = ", i;
@@ -111,6 +114,8 @@ ip p;
paths();
+ print "1.2.3.4 = ", onetwo;
+
print "done";
quitbird;
# print "*** FAIL: this is unreachable";