filters_init() renamed to filters_postconfig().

This commit is contained in:
Pavel Machek 1999-01-15 18:13:55 +00:00
parent c9b6670608
commit ca3d562b24
5 changed files with 74 additions and 2 deletions

16
Makefile Normal file
View file

@ -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

54
bird.conf Normal file
View file

@ -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"
}

View file

@ -56,7 +56,7 @@ interpret(struct f_instruction *what)
}
void
filters_init(void)
filters_postconfig(void)
{
if (!last_func)
printf( "No function defined\n" );

View file

@ -18,4 +18,6 @@ struct f_instruction {
void *arg1, *arg2;
};
void filters_postconfig(void);
#endif

View file

@ -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();