summaryrefslogtreecommitdiff
path: root/babeld/babel_main.c
diff options
context:
space:
mode:
authorJuliusz Chroboczek <jch@pps.jussieu.fr>2012-02-14 08:49:57 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:54 +0100
commit36329c02c36703cc2158c1c99b86045fed26d4ae (patch)
tree64cebc900d5b528f5a85645f681a38b59e5ad669 /babeld/babel_main.c
parentcb4b13d945a4b44282e59fa2be9ceda752420a13 (diff)
babeld: remove remains of standalone babeld's configuration code.
Standalone babeld has a configuration interface that is not used in Quagga. This removes a few bits of this code that survived the port to Quagga.
Diffstat (limited to 'babeld/babel_main.c')
-rw-r--r--babeld/babel_main.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index 3d83091b..0fcba749 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -79,8 +79,6 @@ struct timeval babel_now; /* current time */
unsigned char myid[8]; /* unique id (mac address of an interface) */
int debug = 0;
-int default_wireless_hello_interval = -1;
-int default_wired_hello_interval = -1;
int resend_delay = -1;
static const char *pidfile = PATH_BABELD_PID;
@@ -258,18 +256,7 @@ babel_init(int argc, char **argv)
vty_init (master);
memory_init ();
- if(default_wireless_hello_interval <= 0)
- default_wireless_hello_interval = 4000;
- default_wireless_hello_interval = MAX(default_wireless_hello_interval, 5);
-
- if(default_wired_hello_interval <= 0)
- default_wired_hello_interval = 4000;
- default_wired_hello_interval = MAX(default_wired_hello_interval, 5);
-
- resend_delay = 2000;
- resend_delay = MIN(resend_delay, default_wireless_hello_interval / 2);
- resend_delay = MIN(resend_delay, default_wired_hello_interval / 2);
- resend_delay = MAX(resend_delay, 20);
+ resend_delay = BABEL_DEFAULT_RESEND_DELAY;
if(parasitic && allow_duplicates >= 0) {
/* Too difficult to get right. */