summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorManoj Naragund <mnaragund@vmware.com>2021-10-22 09:46:27 +0200
committerManoj Naragund <mnaragund@vmware.com>2021-10-26 09:57:09 +0200
commita48bc483b0bb4298135ea9f8f8a2b602d93f0561 (patch)
treeaf484205fd92acb30644d3132279e27803b9189c /ospf6d/ospf6_route.c
parentospf6d: minor code enhancements. (diff)
downloadfrr-a48bc483b0bb4298135ea9f8f8a2b602d93f0561.tar.xz
frr-a48bc483b0bb4298135ea9f8f8a2b602d93f0561.zip
ospf6d: prefix structure compare changes.
Description: Code changes involve replacing memcmp with prefix_same, for comparing prefix structures. Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r--ospf6d/ospf6_route.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index 4b87c4cf3..3958ea877 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -580,9 +580,7 @@ ospf6_route_lookup_identical(struct ospf6_route *route,
for (target = ospf6_route_lookup(&route->prefix, table); target;
target = target->next) {
if (target->type == route->type
- && (memcmp(&target->prefix, &route->prefix,
- sizeof(struct prefix))
- == 0)
+ && prefix_same(&target->prefix, &route->prefix)
&& target->path.type == route->path.type
&& target->path.cost == route->path.cost
&& target->path.u.cost_e2 == route->path.u.cost_e2