]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_route.c
ospf6d: prefix structure compare changes.
[mirror_frr.git] / ospf6d / ospf6_route.c
index 4b87c4cf3089b44f612f81a6a00ecd50f1967d93..3958ea877602aedb60d76c37fa38358f6e8ad58a 100644 (file)
@@ -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