]> git.ipfire.org Git - thirdparty/bird.git/blame - bird.conf
Filters upgraded - a bit. Moved code to filter.c because it is where
[thirdparty/bird.git] / bird.conf
CommitLineData
ca3d562b
PM
1/*
2 * This is an example configuration file.
3 */
4
5# Yet another comment
6
23b1539b 7router id 62.168.0.1;
ca3d562b 8
23b1539b 9define xyzzy = 120+10;
ca3d562b 10
23b1539b
PM
11function startup ()
12int i;
13{
14 print "Bird filter language: selftesting...";
15 i = 4;
16 i = 1230 + i;
17 print "Testing arithmetics: 1234 = " i;
18 if i = 4 then { print "*** FAIL: if 0"; quitbird; } else print "test 1 passed";
19 if 1234 = i then print "test 2 passed"; else { print "*** FAIL: if 1 else"; }
20 if 1 <= 1 then print "test 3 passed"; else { print "*** FAIL: test 3"; }
21 if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "test 4 passed";
ba921648 22
23b1539b
PM
23
24 print "done";
25 quitbird;
26 print "*** FAIL: this is unreachable";
27}
ba921648 28
23b1539b
PM
29filter testf
30int j;
31{
32 j = const(4321);
33 print j;
34}
ca3d562b 35
ca3d562b 36protocol rip MyRIP_test {
23b1539b
PM
37 preference xyzzy;
38 debug all;
39 port 1520;
40 period 5;
41 garbagetime 30;
42 interface "*";
ca3d562b 43}
ca3d562b
PM
44
45protocol device {
23b1539b
PM
46# disabled;
47# interface "eth*", "ppp*";
ca3d562b
PM
48}
49
50#protocol kernel {
23b1539b 51# disabled;
ca3d562b
PM
52# learn; # Learn all routes from the kernel
53# scan time 10; # Scan kernel tables every 10 seconds
54#}
55
56protocol static {
23b1539b
PM
57# disabled;
58 route 0.0.0.0/0 via 62.168.0.13;
59 route 62.168.0.0/25 reject;
60# route 10.0.0.0/8 reject;
61# route 10.1.1.0:255.255.255.0 via 62.168.0.3;
62# route 10.1.2.0:255.255.255.0 via 62.168.0.3;
63# route 10.1.3.0:255.255.255.0 via 62.168.0.4;
64# route 10.2.0.0/24 via "arc0";
ca3d562b 65}