summaryrefslogtreecommitdiffstats
path: root/isisd/isis_events.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-10-10 15:43:01 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-12-04 16:13:24 +0100
commita0a707ee6c2a546d4bb60ca7bf5655f856bc9e7d (patch)
tree057db18b7547ef7a37549c7c8e8e92cf6c2d777b /isisd/isis_events.c
parentlib: add thread_timer_remain_msec function (diff)
downloadfrr-a0a707ee6c2a546d4bb60ca7bf5655f856bc9e7d.tar.xz
frr-a0a707ee6c2a546d4bb60ca7bf5655f856bc9e7d.zip
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 <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_events.c')
-rw-r--r--isisd/isis_events.c7
1 files changed, 1 insertions, 6 deletions
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();
}
}