summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-05-28 11:32:44 -0300
committerGitHub <noreply@github.com>2019-05-28 11:32:44 -0300
commitf6fd430e44e5eb219e11091ff18b31ea871f2122 (patch)
tree2608da7e3dfb8b61a0a95c9ecd35b31c6da54a94 /zebra/zebra_rib.c
parent4c02c06489b1a0eb1a849e20f615169c119b955e (diff)
parenta5a2d802d7f4b44423dedf3f7876bdb28aebe844 (diff)
Merge pull request #4322 from sworleys/Nexthop-Cmp
lib: Add nexthop_cmp
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 391917ec68..b31b6a1250 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2855,7 +2855,11 @@ void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type,
break;
}
for (ALL_NEXTHOPS(re->ng, rtnh))
- if (nexthop_same_no_recurse(rtnh, nh)) {
+ /*
+ * No guarantee all kernel send nh with labels
+ * on delete.
+ */
+ if (nexthop_same_no_labels(rtnh, nh)) {
same = re;
break;
}