From ff491140956129580a7d68ea8510b521cce80c9d Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Mon, 6 Apr 2020 16:10:13 -0400 Subject: 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 --- lib/log.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/log.c') 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", '?'}; -- cgit v1.2.3