summaryrefslogtreecommitdiff
path: root/ospfd/ospf_abr.c
diff options
context:
space:
mode:
authorpaul <paul>2004-02-19 19:37:47 +0000
committerpaul <paul>2004-02-19 19:37:47 +0000
commit7f352b860eeca47cf9a3535654cd72a26fbedfda (patch)
treeb9c3acc01c2463ea36e2a4d234b2194feef5fe23 /ospfd/ospf_abr.c
parentcfeab480d57ae7de5df458cc12d69c1505bb7524 (diff)
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.
Diffstat (limited to 'ospfd/ospf_abr.c')
-rw-r--r--ospfd/ospf_abr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c
index 46fb7aaf..bacae917 100644
--- a/ospfd/ospf_abr.c
+++ b/ospfd/ospf_abr.c
@@ -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++;