diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-11-28 15:41:03 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-11-28 15:41:03 +0100 |
commit | 8f1bf68740ed1db4d60966be9bdf5e44640e1939 (patch) | |
tree | c53b4aace14c0db0b28c7f62f36e4fe66730cf22 /ospf6d/ospf6_abr.c | |
parent | ospfd: Do not auto-debug DR-Election notifications (diff) | |
download | frr-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.c | 2 |
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, |