diff options
author | Martin Mares <mj@ucw.cz> | 1998-11-27 22:09:57 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-11-27 22:09:57 +0100 |
commit | c74c0e3cdf008988a8873d3f76c0d71b29ab8673 (patch) | |
tree | b1392eb7bc193f820f7f57b8b12eea7ff56239e8 /sysdep | |
parent | 93fb60d54ca7ce3efec1cc0b39fb0840d055ccd1 (diff) | |
download | bird-c74c0e3cdf008988a8873d3f76c0d71b29ab8673.tar bird-c74c0e3cdf008988a8873d3f76c0d71b29ab8673.zip |
First attempt at protocol configuration (now done only for RIP).
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/main.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index c649cb2..4aeb9c1 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -78,9 +78,12 @@ read_config(void) conf_fd = open(PATH_CONFIG, O_RDONLY); if (conf_fd < 0) die("Unable to open configuration file " PATH_CONFIG ": %m"); + protos_preconfig(); cf_read_hook = cf_read; cf_lex_init(1); cf_parse(); + add_tail(&protocol_list, &proto_unix_kernel.n); /* FIXME: Must be _always_ the last one */ + protos_postconfig(); } /* @@ -93,29 +96,25 @@ main(void) log(L_INFO "Launching BIRD -1.-1-pre-omega..."); log_init_debug(NULL); - resource_init(); - - debug("Reading configuration file.\n"); - read_config(); debug("Initializing.\n"); + resource_init(); io_init(); rt_init(); if_init(); + protos_build(); - add_tail(&protocol_list, &proto_unix_kernel.n); /* FIXME: Must be _always_ the last one */ protos_init(); - protos_preconfig(); - protos_postconfig(); + + debug("Reading configuration file.\n"); + read_config(); signal_init(); scan_if_init(); auto_router_id(); -#if 0 protos_start(); -#endif handle_sigusr(0); |