summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-02-13 09:14:56 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-02-13 09:40:47 -0500
commit1c950f37b74dd589b21246e7abbd7772b2632a5f (patch)
tree093ae7fb3fc768391d51ff0cd0df2930f3ee355b /lib/routemap.h
parent5913a17a5b39353e82baf7e7c180c6ad0493522a (diff)
lib: Add `debug routemap [detail]`
Add the ability to turn on `debug routemap detail` for FRR. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index 9c78e15735..ddcb8f2ddb 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -37,6 +37,10 @@ DECLARE_MTYPE(ROUTE_MAP_NAME);
DECLARE_MTYPE(ROUTE_MAP_RULE);
DECLARE_MTYPE(ROUTE_MAP_COMPILED);
+#define DEBUG_ROUTEMAP 0x01
+#define DEBUG_ROUTEMAP_DETAIL 0x02
+extern uint32_t rmap_debug;
+
/* Route map's type. */
enum route_map_type { RMAP_PERMIT, RMAP_DENY, RMAP_ANY };