summaryrefslogtreecommitdiff
path: root/lib/log.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-04-06 16:10:13 -0400
committerMark Stapp <mjs@voltanet.io>2020-06-02 08:20:54 -0400
commitff491140956129580a7d68ea8510b521cce80c9d (patch)
tree076b1f5d5ab772763c5727e8c5f48a22fdb7fdfd /lib/log.c
parentf8c511cddb9bc54d190d8bfcded339ed7f3ec219 (diff)
lib: add OPAQUE zapi message
Add a zapi message type designed to carry opaque data. Add 'send' api, and prototype for client handler function. Also add registration/unreg messages, so that clients can 'subscribe' to receive these messages as they're passing through zebra. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index 9b0f5b3d85..089a3e3a07 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -443,7 +443,10 @@ static const struct zebra_desc_table command_types[] = {
DESC_ENTRY(ZEBRA_MLAG_CLIENT_UNREGISTER),
DESC_ENTRY(ZEBRA_MLAG_FORWARD_MSG),
DESC_ENTRY(ZEBRA_ERROR),
- DESC_ENTRY(ZEBRA_CLIENT_CAPABILITIES)};
+ DESC_ENTRY(ZEBRA_CLIENT_CAPABILITIES),
+ DESC_ENTRY(ZEBRA_OPAQUE_MESSAGE),
+ DESC_ENTRY(ZEBRA_OPAQUE_REGISTER),
+ DESC_ENTRY(ZEBRA_OPAQUE_UNREGISTER)};
#undef DESC_ENTRY
static const struct zebra_desc_table unknown = {0, "unknown", '?'};