summaryrefslogtreecommitdiff
path: root/staticd/static_debug.c
diff options
context:
space:
mode:
authorYuqing Zhao <galadriel.zyq@alibaba-inc.com>2025-01-15 18:43:37 +0100
committerYuqing Zhao <galadriel.zyq@alibaba-inc.com>2025-01-18 10:28:49 +0000
commit57031d43ce02faaf6aea32071a48f6a9aadd35a1 (patch)
treefd69ae9dc125254b50499f452fbf53888fddb1fb /staticd/static_debug.c
parentf792a215cdd5b747e8b8635c4033d26a7d317c5f (diff)
staticd: Add debug option for SRv6
Signed-off-by: Yuqing Zhao <galadriel.zyq@alibaba-inc.com>
Diffstat (limited to 'staticd/static_debug.c')
-rw-r--r--staticd/static_debug.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/staticd/static_debug.c b/staticd/static_debug.c
index 618ba91d12..b308860424 100644
--- a/staticd/static_debug.c
+++ b/staticd/static_debug.c
@@ -22,6 +22,7 @@
struct debug static_dbg_events = {0, "debug static events", "Staticd events"};
struct debug static_dbg_route = {0, "debug static route", "Staticd route"};
struct debug static_dbg_bfd = {0, "debug static bfd", "Staticd bfd"};
+struct debug static_dbg_srv6 = {0, "debug static srv6", "Staticd srv6"};
/* clang-format on */
/*
@@ -37,8 +38,7 @@ struct debug static_dbg_bfd = {0, "debug static bfd", "Staticd bfd"};
* Debug general internal events
*
*/
-void static_debug_set(int vtynode, bool onoff, bool events, bool route,
- bool bfd)
+void static_debug_set(int vtynode, bool onoff, bool events, bool route, bool bfd, bool srv6)
{
uint32_t mode = DEBUG_NODE2MODE(vtynode);
@@ -50,6 +50,8 @@ void static_debug_set(int vtynode, bool onoff, bool events, bool route,
DEBUG_MODE_SET(&static_dbg_bfd, mode, onoff);
bfd_protocol_integration_set_debug(onoff);
}
+ if (srv6)
+ DEBUG_MODE_SET(&static_dbg_srv6, mode, onoff);
}
/*
@@ -61,4 +63,5 @@ void static_debug_init(void)
debug_install(&static_dbg_events);
debug_install(&static_dbg_route);
debug_install(&static_dbg_bfd);
+ debug_install(&static_dbg_srv6);
}