From: Stephen Worley Date: Wed, 20 May 2020 22:04:53 +0000 (-0400) Subject: zebra: increment the nhg proto score iterator X-Git-Tag: base_7.6~489^2~29 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f651b708e0921d9610803a6e42414b058dfdfb56;p=matthieu%2Ffrr.git 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 --- 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",