From f651b708e0921d9610803a6e42414b058dfdfb56 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 20 May 2020 18:04:53 -0400 Subject: [PATCH] zebra: increment the nhg proto score iterator Increment the nhg proto score iterator we used to count leftover NHGs after client disconnect and log. Signed-off-by: Stephen Worley --- zebra/zebra_nhg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 1c9b970008..517e202e74 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -2864,6 +2864,8 @@ static void zebra_nhg_score_proto_entry(struct hash_bucket *bucket, void *arg) /* Needs to match type and outside zebra ID space */ if (nhe->type == iter->type && nhe->id >= ZEBRA_NHG_PROTO_LOWER) { + iter->found++; + if (IS_ZEBRA_DEBUG_NHG_DETAIL) zlog_debug( "%s: found nhe %p (%u), vrf %d, type %s after client disconnect", -- 2.39.5