summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-28 19:05:16 +0200
committerGitHub <noreply@github.com>2021-10-28 19:05:16 +0200
commitfd4bd21eeef612234c6000f9ff87e763969d2479 (patch)
tree866eec80c2a850f974774b766ef12f0d60a442b6 /ospf6d/ospf6_route.c
parentMerge pull request #9870 from opensourcerouting/zebra-rib-select-order (diff)
parentospf6d: remove unnecessary break. (diff)
downloadfrr-fd4bd21eeef612234c6000f9ff87e763969d2479.tar.xz
frr-fd4bd21eeef612234c6000f9ff87e763969d2479.zip
Merge pull request #9831 from manojvn/379909_383518
ospf6d: minor code enhancements.
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 a4ed99ea2..d0c8e3c97 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