]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: Consolidate to ospf6_route_is_identical
authorDonald Sharp <sharpd@nvidia.com>
Mon, 28 Nov 2022 14:46:39 +0000 (09:46 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 28 Nov 2022 15:30:31 +0000 (10:30 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospf6d/ospf6_route.c

index ecfd0469b2fd030835e18e7f4b9b3e599d02bf29..9603c91a9ad78fd17cdd0e7a8c57adec6760a256 100644 (file)
@@ -580,12 +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 &&
-                   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 &&
-                   ospf6_route_cmp_nexthops(target, route))
+               if (ospf6_route_is_identical(target, route))
                        return target;
        }
        return NULL;