summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_asbr.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-10-07 01:00:39 +0200
committerGitHub <noreply@github.com>2021-10-07 01:00:39 +0200
commit45ebf5f134ed74cda2e609079e68cfd75d578031 (patch)
tree6d5af69368aa68db0bfc8c66683d69b7909b1bc3 /ospf6d/ospf6_asbr.c
parentMerge pull request #9738 from rgirada/ospfv3_crash (diff)
parentospf6d: code cleanup. (diff)
downloadfrr-45ebf5f134ed74cda2e609079e68cfd75d578031.tar.xz
frr-45ebf5f134ed74cda2e609079e68cfd75d578031.zip
Merge pull request #9699 from manojvn/379032-dev
ospf6d: minor struct compare issues.
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
-rw-r--r--ospf6d/ospf6_asbr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 3a6078ff0..733f4ba1f 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -290,9 +290,7 @@ void ospf6_asbr_update_route_ecmp_path(struct ospf6_route *old,
* origin.
*/
if (o_path->area_id != route->path.area_id
- || (memcmp(&(o_path)->origin, &(route)->path.origin,
- sizeof(struct ospf6_ls_origin))
- != 0))
+ || !ospf6_ls_origin_same(o_path, &route->path))
continue;
/* Cost is not same then delete current path */
@@ -411,10 +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
- && (memcmp(&(o_path)->origin,
- &(route)->path.origin,
- sizeof(struct ospf6_ls_origin))
- == 0))
+ && ospf6_ls_origin_same(o_path, &route->path))
break;
}
/* If path is not found in old_route paths's list,