From 181232b555bb8074c7509976ca18618f7e6a7aaf Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 24 Apr 2019 17:02:35 +0000 Subject: [PATCH] vrrpd: fix magnitude error when removing adver_int When resetting advertisement interval back to the default, we were dividing centiseconds by 10 instead of milliseconds. Signed-off-by: Quentin Young --- vrrpd/vrrp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c index 296a8a67dd..9cd1be245e 100644 --- a/vrrpd/vrrp_vty.c +++ b/vrrpd/vrrp_vty.c @@ -144,7 +144,7 @@ DEFPY(vrrp_advertisement_interval, VTY_DECLVAR_CONTEXT(interface, ifp); struct vrrp_vrouter *vr; - uint16_t newadvint = no ? vd.advertisement_interval : + uint16_t newadvint = no ? vd.advertisement_interval * 10: advertisement_interval; if (newadvint % 10 != 0) { -- 2.39.5