summaryrefslogtreecommitdiffstats
path: root/lib/mgmt_be_client.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-07-09 05:11:15 +0200
committerChristian Hopps <chopps@labn.net>2023-11-06 23:44:58 +0100
commita65cda16b28bc84b052636118823082de9600cfc (patch)
tree975a1abb64919cc9a9c201b8c50ef7602bd72483 /lib/mgmt_be_client.c
parentMerge pull request #14691 from LabNConsulting/fix-mgmt-msg-valgrind-errors (diff)
downloadfrr-a65cda16b28bc84b052636118823082de9600cfc.tar.xz
frr-a65cda16b28bc84b052636118823082de9600cfc.zip
mgmtd: simplify xpath registries
- move from client id indexed array of uints for register info per client to a u64 bitmask. - add bit walking FOREACH macro Walk the client IDs whose bits are set in a mask. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
-rw-r--r--lib/mgmt_be_client.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c
index be10dcf6a..762ace136 100644
--- a/lib/mgmt_be_client.c
+++ b/lib/mgmt_be_client.c
@@ -118,13 +118,6 @@ struct mgmt_be_client {
struct debug mgmt_dbg_be_client = {0, "Management backend client operations"};
-const char *mgmt_be_client_names[MGMTD_BE_CLIENT_ID_MAX + 1] = {
-#ifdef HAVE_STATICD
- [MGMTD_BE_CLIENT_ID_STATICD] = "staticd",
-#endif
- [MGMTD_BE_CLIENT_ID_MAX] = "Unknown/Invalid",
-};
-
static int mgmt_be_client_send_msg(struct mgmt_be_client *client_ctx,
Mgmtd__BeMessage *be_msg)
{