summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index ffffa8c001..100d17ecde 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -254,7 +254,13 @@ void zebra_router_init(void)
zebra_pbr_iptable_hash_equal,
"IPtable Hash Entry");
+ /* Index via hash and IDs so we can
+ * easily communicate to/from the kernel
+ */
zrouter.nhgs =
hash_create_size(8, zebra_nhg_hash_key, zebra_nhg_hash_equal,
"Zebra Router Nexthop Groups");
+ zrouter.nhgs_id =
+ hash_create_size(8, zebra_nhg_id_key, zebra_nhg_id_equal,
+ "Zebra Router Nexthop Groups ID index");
}