From e2c38e6c9767e30d5683022653b1cf91b186f9d4 Mon Sep 17 00:00:00 2001 From: "Jorge Boncompte [DTI2]" Date: Wed, 20 Jun 2012 17:45:50 +0200 Subject: bgpd: Fix for commit 6a4677b7, fixes BZ#729 The timers are rearmed after events processing. After 6a4677b7 we do not generate events that can rearm the holdtime timer. Fix it's to call bgp_timer_set() directly as it's done from bgp_event(). Signed-off-by: Jorge Boncompte [DTI2] Tested-by: Martin Winter Signed-off-by: David Lamparter --- bgpd/bgp_packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 024f5e7b..2d62c8da 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -1854,8 +1854,9 @@ bgp_update_receive (struct peer *peer, bgp_size_t size) peer->update_in++; peer->update_time = bgp_clock (); - /* Cancel holdtime timer */ + /* Rearm holdtime timer */ BGP_TIMER_OFF (peer->t_holdtime); + bgp_timer_set (peer); return 0; } -- cgit v1.2.1