]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Fix for commit 6a4677b7, fixes BZ#729
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Wed, 20 Jun 2012 15:45:50 +0000 (17:45 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 21 Jun 2012 07:48:56 +0000 (09:48 +0200)
  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] <jorge@dti2.net>
Tested-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_packet.c

index 024f5e7be64fbfbc5ab3eb54f16a2897d4030fd7..2d62c8dacc8c562350502c0879a77eb07f6bf778 100644 (file)
@@ -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;
 }