summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_abr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-11-28 15:41:03 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-11-28 15:41:03 +0100
commit8f1bf68740ed1db4d60966be9bdf5e44640e1939 (patch)
treec53b4aace14c0db0b28c7f62f36e4fe66730cf22 /ospf6d/ospf6_abr.c
parentospfd: Do not auto-debug DR-Election notifications (diff)
downloadfrr-8f1bf68740ed1db4d60966be9bdf5e44640e1939.tar.xz
frr-8f1bf68740ed1db4d60966be9bdf5e44640e1939.zip
ospf6d: ospf6_route_cmp_nexthops make return sane
The ospf6_route_cmp_nexthops function was returning 0 for same and 1 for not same. Let's reverse the polarity and actually make the returns useful long term. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r--ospf6d/ospf6_abr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c
index e9c42bb80..e007709f9 100644
--- a/ospf6d/ospf6_abr.c
+++ b/ospf6d/ospf6_abr.c
@@ -1322,7 +1322,7 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa)
ospf6_copy_nexthops(tmp_route->nh_list,
o_path->nh_list);
- if (ospf6_route_cmp_nexthops(tmp_route, route) != 0) {
+ if (!ospf6_route_cmp_nexthops(tmp_route, route)) {
/* adv. router exists in the list, update nhs */
list_delete_all_node(o_path->nh_list);
ospf6_copy_nexthops(o_path->nh_list,