summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_asbr.c
diff options
context:
space:
mode:
authorManoj Naragund <mnaragund@vmware.com>2021-09-30 19:28:11 +0200
committerManoj Naragund <mnaragund@vmware.com>2021-10-06 17:54:47 +0200
commitbc465fb6cc7cfbad3301d6d0ceb4fb539dbaec35 (patch)
treebb2fd852dd9e7cb66717756fe7e2f50db9551765 /ospf6d/ospf6_asbr.c
parentospf6d: minor struct compare issues. (diff)
downloadfrr-bc465fb6cc7cfbad3301d6d0ceb4fb539dbaec35.tar.xz
frr-bc465fb6cc7cfbad3301d6d0ceb4fb539dbaec35.zip
ospf6d: code cleanup.
removal of some of the deadcode in ospf6d. Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
-rw-r--r--ospf6d/ospf6_asbr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index beed61d04..c5ee22bc5 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -290,7 +290,7 @@ void ospf6_asbr_update_route_ecmp_path(struct ospf6_route *old,
* origin.
*/
if (o_path->area_id != route->path.area_id
- || (!ospf6_ls_origin_cmp(o_path, route)))
+ || !ospf6_ls_origin_same(o_path, &route->path))
continue;
/* Cost is not same then delete current path */
@@ -409,7 +409,7 @@ void ospf6_asbr_update_route_ecmp_path(struct ospf6_route *old,
for (ALL_LIST_ELEMENTS_RO(old_route->paths, anode,
o_path)) {
if (o_path->area_id == route->path.area_id
- && (ospf6_ls_origin_cmp(o_path, route)))
+ && ospf6_ls_origin_same(o_path, &route->path))
break;
}
/* If path is not found in old_route paths's list,