[quagga-dev 7938] [PATCH 3/3] ospfd: Do not force refresh of external default route.

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


 * ospf_zebra.c: (ospf_distribute_list_update_timer) forces a
   refresh of default route even when it hasn't changed while
   other routes( static etc. ) are only refreshed as needed.
   This makes default route refreash behave as any other
   external route.

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

diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 462f67c..efefd67 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -949,9 +949,7 @@ ospf_distribute_list_update_timer (struct thread *thread)
       for (rn = route_top (rt); rn; rn = route_next (rn))
 	if ((ei = rn->info) != NULL)
 	  {
-	    if (is_prefix_default (&ei->p))
-	      ospf_external_lsa_refresh_default (ospf);
-	    else if ((lsa = ospf_external_info_find_lsa (ospf, &ei->p)))
+	    if ((lsa = ospf_external_info_find_lsa (ospf, &ei->p)))
 	      ospf_external_lsa_refresh (ospf, lsa, ei, LSA_REFRESH_IF_CHANGED);
 	    else
 	      ospf_external_lsa_originate (ospf, ei);
-- 
1.6.4.4




More information about the Quagga-dev mailing list