diff options
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | bird.conf | 54 | ||||
-rw-r--r-- | filter/f-util.c | 2 | ||||
-rw-r--r-- | filter/filter.h | 2 | ||||
-rw-r--r-- | sysdep/unix/main.c | 2 |
5 files changed, 74 insertions, 2 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..fa437ed6 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +# Generated automatically from Makefile-top.in by configure. +# Makefile for in place build of BIRD +# (c) 1999 Martin Mares <mj@ucw.cz> + +objdir=obj + +all: + $(MAKE) -C $(objdir) $@ + +clean: + $(MAKE) -C $(objdir) clean + rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name .#*` + +distclean: clean + rm -rf $(objdir) + rm -f config.* configure sysdep/autoconf.h Makefile diff --git a/bird.conf b/bird.conf new file mode 100644 index 00000000..09b03d43 --- /dev/null +++ b/bird.conf @@ -0,0 +1,54 @@ +/* + * This is an example configuration file. + */ + +# Yet another comment + +router id 62.168.0.1 + +define xyzzy = 120+10 + +function test() { + int i; + + printdebug; + i = 5; + print( i ); + printdebug; + i = 1234; + print( i ); + printdebug; +} + +/* +protocol rip MyRIP_test { + preference xyzzy + debug all + port 1520 + period 5 + garbagetime 30 + interface "*" +} +*/ + +protocol device { + disabled + interface "eth*", "ppp*" +} + +#protocol kernel { +# disabled +# learn; # Learn all routes from the kernel +# scan time 10; # Scan kernel tables every 10 seconds +#} + +protocol static { +# disabled + route 0.0.0.0/0 via 62.168.0.13 + route 62.168.0.0/25 reject +# route 10.0.0.0/8 reject +# route 10.1.1.0:255.255.255.0 via 62.168.0.3 +# route 10.1.2.0:255.255.255.0 via 62.168.0.3 +# route 10.1.3.0:255.255.255.0 via 62.168.0.4 +# route 10.2.0.0/24 via "arc0" +} diff --git a/filter/f-util.c b/filter/f-util.c index df6babb7..65b8b52a 100644 --- a/filter/f-util.c +++ b/filter/f-util.c @@ -56,7 +56,7 @@ interpret(struct f_instruction *what) } void -filters_init(void) +filters_postconfig(void) { if (!last_func) printf( "No function defined\n" ); diff --git a/filter/filter.h b/filter/filter.h index 499be0a1..09cd7a23 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -18,4 +18,6 @@ struct f_instruction { void *arg1, *arg2; }; +void filters_postconfig(void); + #endif diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 2eac89e3..bea479c1 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -83,6 +83,7 @@ read_config(void) cf_read_hook = cf_read; cf_lex_init(1); cf_parse(); + filters_postconfig(); protos_postconfig(); } /* @@ -108,7 +109,6 @@ main(void) debug("Reading configuration file.\n"); read_config(); - filters_init(); signal_init(); |