[quagga-dev 7937] [PATCH 2/3] ospfd: Make sure ospf_distribute_list_update_timer() eventually runs.

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Wed Apr 14 10:05:28 BST 2010


 * ospf_zebra.c: (ospf_distribute_list_update_timer)
   If there are updates to the distribute list every 5 second or less,
   ospf_distribute_list_update_timer() will never run as the timer gets
   rearmed for each update. This fixes it by never rearming an active
   distribute list timer.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
---
 ospfd/ospf_zebra.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 90bee21..462f67c 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -972,9 +972,9 @@ ospf_distribute_list_update (struct ospf *ospf, int type)
   if (!(rt = EXTERNAL_INFO (type)))
     return;
 
-  /* If exists previously invoked thread, then cancel it. */
+  /* If exists previously invoked thread, then let it continue. */
   if (ospf->t_distribute_update)
-    OSPF_TIMER_OFF (ospf->t_distribute_update);
+    return;
 
   /* Set timer. */
   ospf->t_distribute_update =
-- 
1.6.4.4




More information about the Quagga-dev mailing list