summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-11-11 19:21:17 +0100
committerChristian Hopps <chopps@labn.net>2023-11-11 19:25:03 +0100
commit59beac5013f48889d8b73bb57df085d8d3e7a09f (patch)
tree799ce3a01f6417db5d7538e615a5e72fd3761185 /lib/command.h
parent19bcca4f2e9a3ee3c8cc16608dcf303241bbf014 (diff)
lib: mgmtd: fix debug cli commands and memleaks
- Cannot have 2 cmd_node's with same .node number. Install the mgmtd client library debug nodes (client frontend and client backend) using new unique node numbers. Fixes memleaks. - Fix "debug mgmt client backend" to generate correct config (and not for frontend). Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 718d34b007..0da838feb1 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -88,6 +88,8 @@ enum node_type {
DEBUG_VNC_NODE, /* Debug VNC node. */
RMAP_DEBUG_NODE, /* Route-map debug node */
RESOLVER_DEBUG_NODE, /* Resolver debug node */
+ MGMT_BE_DEBUG_NODE, /* mgmtd backend-client debug node */
+ MGMT_FE_DEBUG_NODE, /* mgmtd frontend-client debug node */
AAA_NODE, /* AAA node. */
EXTLOG_NODE, /* RFC5424 & co. extended syslog */
KEYCHAIN_NODE, /* Key-chain node. */