summaryrefslogtreecommitdiffstats
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-19 20:13:36 +0200
committerMartin Mares <mj@ucw.cz>1998-10-19 20:13:36 +0200
commit7d8329078066b5682a0330b20dbdf74c7a01cbac (patch)
tree10893b4eef8fd178460a7ae2d2bc3106179bb3c3 /sysdep/unix
parent08045252553478457f923a9f941675df9992f507 (diff)
downloadbird-7d8329078066b5682a0330b20dbdf74c7a01cbac.tar
bird-7d8329078066b5682a0330b20dbdf74c7a01cbac.zip
Generate router_id automatically if possible (standard "smallest of local
regular interface addresses" rule). Protocols should NOT rely on router_id existence -- when router ID is not available, the router_id variable is set to zero and protocols requiring valid router ID should just refuse to start, reporting such error to the log.
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 4c60ee6..3d927cb 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -86,6 +86,7 @@ main(void)
signal_init();
scan_if_init();
+ auto_router_id();
protos_start();