summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 17026d13a6..deb5f519bd 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -4083,3 +4083,11 @@ uint32_t zclient_get_nhg_start(uint32_t proto)
return ZEBRA_NHG_SPACING * proto;
}
+
+/*
+ * Where do routing protocols IDs start overall (first ID after zebra)
+ */
+uint32_t zclient_get_nhg_lower_bound()
+{
+ return ZEBRA_NHG_SPACING * (ZEBRA_ROUTE_CONNECT + 1);
+}