]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: increment the nhg proto score iterator
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 20 May 2020 22:04:53 +0000 (18:04 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
Increment the nhg proto score iterator we used to count
leftover NHGs after client disconnect and log.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c

index 1c9b9700088cb38b860078585c0bf9c44d8c1015..517e202e749b30542b4915f821043b95195d619c 100644 (file)
@@ -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",