summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nhg.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-03-29 23:14:20 +0100
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 17:13:39 +0200
commit7fd392cc4d804aae6bd9d1452ba5b108ecdc70a2 (patch)
tree8e36437730be7526b9633311cfbb92c8f56bcf39 /zebra/zebra_nhg.h
parentzebra: Add equivalence function for nhg_depends (diff)
downloadfrr-7fd392cc4d804aae6bd9d1452ba5b108ecdc70a2.tar.xz
frr-7fd392cc4d804aae6bd9d1452ba5b108ecdc70a2.zip
zebra: Add function to increment nhg refcnt
Add function to increment the route reference count for nhg_hash_entry's and to do so recursively if its a group. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nhg.h')
-rw-r--r--zebra/zebra_nhg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h
index 8daa2a1cc..90c7abb3e 100644
--- a/zebra/zebra_nhg.h
+++ b/zebra/zebra_nhg.h
@@ -114,6 +114,7 @@ void zebra_nhg_free_members(struct nhg_hash_entry *nhe);
void zebra_nhg_free(void *arg);
void zebra_nhg_release(struct nhg_hash_entry *nhe);
void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe);
+void zebra_nhg_increment_ref(struct nhg_hash_entry *nhe);
extern int nexthop_active_update(struct route_node *rn, struct route_entry *re);