diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-11-28 09:46:39 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-11-28 10:30:31 -0500 |
| commit | 0ec939675aeba665d025640266d061e50951d238 (patch) | |
| tree | 5c30b5ffd22e454fef24cab8e5d9dac8b5c59001 /ospf6d/ospf6_route.c | |
| parent | 8f1bf68740ed1db4d60966be9bdf5e44640e1939 (diff) | |
ospf6d: Consolidate to ospf6_route_is_identical
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_route.c')
| -rw-r--r-- | ospf6d/ospf6_route.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index ecfd0469b2..9603c91a9a 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -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; |
