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;