summaryrefslogtreecommitdiff
path: root/zebra/debug.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-12-20 13:23:40 -0500
committerMark Stapp <mjs@voltanet.io>2019-12-23 08:47:38 -0500
commitd4b4b70cdc3ea1643666a35807d67ff9024c7510 (patch)
tree09e5755531ac57a303d726539d996a9a11b4fd8b /zebra/debug.h
parent1e72835da988de918f1679d8963abebe74868b83 (diff)
zebra: add a debug category for nexthops
Add a category for nexthops and nh-groups, since we've got quite a bit of code in there now. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/debug.h')
-rw-r--r--zebra/debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/debug.h b/zebra/debug.h
index 176226f7ae..e513f8865d 100644
--- a/zebra/debug.h
+++ b/zebra/debug.h
@@ -59,6 +59,9 @@ extern "C" {
#define ZEBRA_DEBUG_MLAG 0x01
+#define ZEBRA_DEBUG_NHG 0x01
+#define ZEBRA_DEBUG_NHG_DETAILED 0x02
+
/* Debug related macro. */
#define IS_ZEBRA_DEBUG_EVENT (zebra_debug_event & ZEBRA_DEBUG_EVENT)
@@ -92,6 +95,11 @@ extern "C" {
#define IS_ZEBRA_DEBUG_MLAG (zebra_debug_mlag & ZEBRA_DEBUG_MLAG)
+#define IS_ZEBRA_DEBUG_NHG (zebra_debug_nexthop & ZEBRA_DEBUG_NHG)
+
+#define IS_ZEBRA_DEBUG_NHG_DETAIL \
+ (zebra_debug_nexthop & ZEBRA_DEBUG_NHG_DETAILED)
+
extern unsigned long zebra_debug_event;
extern unsigned long zebra_debug_packet;
extern unsigned long zebra_debug_kernel;
@@ -103,6 +111,7 @@ extern unsigned long zebra_debug_vxlan;
extern unsigned long zebra_debug_pw;
extern unsigned long zebra_debug_dplane;
extern unsigned long zebra_debug_mlag;
+extern unsigned long zebra_debug_nexthop;
extern void zebra_debug_init(void);