Revision 23b1539b bird.conf

View differences:

bird.conf
4 4

  
5 5
# Yet another comment
6 6

  
7
router id 62.168.0.1
7
router id 62.168.0.1;
8 8

  
9
define xyzzy = 120+10
9
define xyzzy = 120+10;
10 10

  
11
function startup () int i; { printdebug; printdebug; i = 5; print( i ); i = 1234 + i; print( i ); if 0 then { puts( "You must not ever see this" ); quitbird; } print( 2 ); if 1 then puts( "jedna dve honza jde" ); quitbird; }
11
function startup () 
12
int 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";
12 22

  
13
filter testf int j; { j = const(4321); print( j ); }
23
	
24
	print "done";
25
	quitbird;
26
	print "*** FAIL: this is unreachable"; 
27
}
14 28

  
29
filter testf 
30
int j; 
31
{ 
32
	j = const(4321); 
33
	print j;
34
}
15 35

  
16 36
protocol rip MyRIP_test {
17
	preference xyzzy
18
	debug all
19
	port 1520
20
	period 5
21
	garbagetime 30
22
	interface "*"
37
	preference xyzzy;
38
	debug all;
39
	port 1520;
40
	period 5;
41
	garbagetime 30;
42
	interface "*";
23 43
}
24 44

  
25 45
protocol device {
26
	disabled
27
	interface "eth*", "ppp*"
46
#	disabled;
47
#	interface "eth*", "ppp*";
28 48
}
29 49

  
30 50
#protocol kernel {
31
#	disabled
51
#	disabled;
32 52
#	learn;			# Learn all routes from the kernel
33 53
#	scan time 10;		# Scan kernel tables every 10 seconds
34 54
#}
35 55

  
36 56
protocol static {
37
#	disabled
38
	route 0.0.0.0/0 via 62.168.0.13
39
	route 62.168.0.0/25 reject
40
#	route 10.0.0.0/8 reject
41
#	route 10.1.1.0:255.255.255.0 via 62.168.0.3
42
#	route 10.1.2.0:255.255.255.0 via 62.168.0.3
43
#	route 10.1.3.0:255.255.255.0 via 62.168.0.4
44
#	route 10.2.0.0/24 via "arc0"
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";
45 65
}

Also available in: Unified diff