summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-01-15 19:13:55 +0100
committerPavel Machek <pavel@ucw.cz>1999-01-15 19:13:55 +0100
commitca3d562b24d5a3e303ab00d276496fb38b7382ee (patch)
tree0c857200e5c1b52664e998310c7c29b476adcb8e
parentc9b6670608577521c883db4bccd75b871568b7f7 (diff)
downloadbird-ca3d562b24d5a3e303ab00d276496fb38b7382ee.tar
bird-ca3d562b24d5a3e303ab00d276496fb38b7382ee.zip
filters_init() renamed to filters_postconfig().
-rw-r--r--Makefile16
-rw-r--r--bird.conf54
-rw-r--r--filter/f-util.c2
-rw-r--r--filter/filter.h2
-rw-r--r--sysdep/unix/main.c2
5 files changed, 74 insertions, 2 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa437ed
--- /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 0000000..09b03d4
--- /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 df6babb..65b8b52 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 499be0a..09cd7a2 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 2eac89e..bea479c 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();