From a0a707ee6c2a546d4bb60ca7bf5655f856bc9e7d Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Wed, 10 Oct 2018 15:43:01 +0200 Subject: isisd: add send_hello_sched function Add a function send_hello_sched so that the logic for scheduling a hello is not replicated inconsistently into different locations. Signed-off-by: Christian Franke --- isisd/isis_events.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'isisd/isis_events.c') diff --git a/isisd/isis_events.c b/isisd/isis_events.c index db197c7be..4da23c591 100644 --- a/isisd/isis_events.c +++ b/isisd/isis_events.c @@ -97,12 +97,7 @@ static void circuit_commence_level(struct isis_circuit *circuit, int level) 2 * circuit->hello_interval[level - 1], &circuit->u.bc.t_run_dr[level - 1]); - thread_add_timer(master, send_hello_cb, - &circuit->level_arg[level - 1], - isis_jitter(circuit->hello_interval[level - 1], - IIH_JITTER), - &circuit->u.bc.t_send_lan_hello[level - 1]); - + send_hello_sched(circuit, level, TRIGGERED_IIH_DELAY); circuit->u.bc.lan_neighs[level - 1] = list_new(); } } -- cgit v1.2.3