From 622fd3f11e913ec464e9eae5df59ac0ea5d49b78 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Tue, 20 Apr 2021 16:17:48 -0300 Subject: pimd: support MSDP global timers configuration Users can now configure: * Hold time * Keep alive * Connection retry Signed-off-by: Rafael Zalamena --- pimd/pim_msdp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pimd/pim_msdp.c') diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c index be2df7693..2a8f0c121 100644 --- a/pimd/pim_msdp.c +++ b/pimd/pim_msdp.c @@ -918,7 +918,7 @@ static void pim_msdp_peer_hold_timer_setup(struct pim_msdp_peer *mp, bool start) THREAD_OFF(mp->hold_timer); if (start) { thread_add_timer(pim->msdp.master, pim_msdp_peer_hold_timer_cb, - mp, PIM_MSDP_PEER_HOLD_TIME, &mp->hold_timer); + mp, pim->msdp.hold_time, &mp->hold_timer); } } @@ -944,7 +944,7 @@ static void pim_msdp_peer_ka_timer_setup(struct pim_msdp_peer *mp, bool start) if (start) { thread_add_timer(mp->pim->msdp.master, pim_msdp_peer_ka_timer_cb, mp, - PIM_MSDP_PEER_KA_TIME, &mp->ka_timer); + mp->pim->msdp.keep_alive, &mp->ka_timer); } } @@ -1006,9 +1006,9 @@ static void pim_msdp_peer_cr_timer_setup(struct pim_msdp_peer *mp, bool start) { THREAD_OFF(mp->cr_timer); if (start) { - thread_add_timer( - mp->pim->msdp.master, pim_msdp_peer_cr_timer_cb, mp, - PIM_MSDP_PEER_CONNECT_RETRY_TIME, &mp->cr_timer); + thread_add_timer(mp->pim->msdp.master, + pim_msdp_peer_cr_timer_cb, mp, + mp->pim->msdp.connection_retry, &mp->cr_timer); } } -- cgit v1.2.3