]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-02-19 Sowmini Varadhan <sowmini.varadhan@sun.com>
authorpaul <paul>
Thu, 19 Feb 2004 19:37:47 +0000 (19:37 +0000)
committerpaul <paul>
Thu, 19 Feb 2004 19:37:47 +0000 (19:37 +0000)
        * ospf_abr.c: (ospf_abr_update_aggregate) UNH 3.12b,c, address range
          should be configured with the highest cost path within the range,
          not lowest.

ospfd/ChangeLog
ospfd/ospf_abr.c

index 6c8955a3fceb7c4d9b01c6523036c13ce9350eb5..3ec877f5b6586b958521b1e0e6381e99c8f124a2 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-19 Sowmini Varadhan <sowmini.varadhan@sun.com>
+
+       * ospf_abr.c: (ospf_abr_update_aggregate) UNH 3.12b,c, address range
+         should be configured with the highest cost path within the range,
+         not lowest.
+         
 2004-02-17 Paul Jakma <paul@dishone.st>
 
        * ospf_zebra.c: (ospf_interface_delete) Do not delete the interface
index 46fb7aaf0ccedc95a8171195b0de0a336ef366d2..bacae917855b24db4b26af11fbd6a5f1a90fe19a 100644 (file)
@@ -562,7 +562,7 @@ ospf_check_abr_status (struct ospf *ospf)
 
 void
 ospf_abr_update_aggregate (struct ospf_area_range *range,
-                          struct ospf_route *or)
+                           struct ospf_route *or)
 {
   if (IS_DEBUG_OSPF_EVENT)
     zlog_info ("ospf_abr_update_aggregate(): Start");
@@ -570,23 +570,23 @@ ospf_abr_update_aggregate (struct ospf_area_range *range,
   if (range->cost_config != -1)
     {
       if (IS_DEBUG_OSPF_EVENT)
-       zlog_info ("ospf_abr_update_aggregate(): use configured cost %d",
-                  range->cost_config);
+        zlog_info ("ospf_abr_update_aggregate(): use configured cost %d",
+                   range->cost_config);
 
       range->cost = range->cost_config;
     }
   else
     {
       if (range->specifics == 0)
-       range->cost = or->cost; /* 1st time get 1st cost */
+        range->cost = or->cost; /* 1st time get 1st cost */
 
-      if (or->cost < range->cost)
-       {
-         if (IS_DEBUG_OSPF_EVENT)
-           zlog_info ("ospf_abr_update_aggregate(): lowest cost, update");
+      if (or->cost > range->cost)
+        {
+          if (IS_DEBUG_OSPF_EVENT)
+            zlog_info ("ospf_abr_update_aggregate(): lowest cost, update");
 
-         range->cost = or->cost;
-       }
+          range->cost = or->cost;
+        }
     }
 
   range->specifics++;