From 6c47d39902fea25151833f92d44d8e624fbacfeb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 1 Feb 2019 19:08:16 -0500 Subject: [PATCH] zebra: Fix multiple levels of static recursion Allow the nexthop-check code to figure out recursive static routes in a logical manner. Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 73e4b981b5..bccf9b6b14 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -608,6 +608,9 @@ static int nexthop_active(afi_t afi, struct route_entry *re, if (!CHECK_FLAG(match->status, ROUTE_ENTRY_INSTALLED)) continue; + if (CHECK_FLAG(newhop->flags, + NEXTHOP_FLAG_RECURSIVE)) + continue; if (set) { SET_FLAG(nexthop->flags, -- 2.39.5