mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
ospf6d: prefix structure compare changes.
Description: Code changes involve replacing memcmp with prefix_same, for comparing prefix structures. Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
This commit is contained in:
parent
d214b64afa
commit
a48bc483b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user