summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mlag.h
diff options
context:
space:
mode:
authorSatheesh Kumar K <sathk@cumulusnetworks.com>2019-08-27 06:24:19 +0200
committerSatheesh Kumar K <sathk@cumulusnetworks.com>2019-09-24 10:52:18 +0200
commitd5167496339ba462e0b6e8d69363b393f6c6ffa0 (patch)
tree03213505feb5151b9117dbb8381c4ba8bde4190e /zebra/zebra_mlag.h
parentlib,mlag : Defining MLAG Proto file (diff)
downloadfrr-d5167496339ba462e0b6e8d69363b393f6c6ffa0.tar.xz
frr-d5167496339ba462e0b6e8d69363b393f6c6ffa0.zip
Zebra: ADD Protobuf Encoding & Decoding for MLAG Messages
1. add the Mlag ProtoBuf Lib to Zebra Compilation 2. Encode the messages with protobuf before writing to MLAG 3. Decode the MLAG Messages using protobuf and write to clients based on their subscrption. Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mlag.h')
-rw-r--r--zebra/zebra_mlag.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_mlag.h b/zebra/zebra_mlag.h
index a145753d8..01459cd29 100644
--- a/zebra/zebra_mlag.h
+++ b/zebra/zebra_mlag.h
@@ -26,6 +26,10 @@
#include "zclient.h"
#include "zebra/zserv.h"
+#ifdef HAVE_PROTOBUF
+#include "mlag/mlag.pb-c.h"
+#endif
+
#define ZEBRA_MLAG_BUF_LIMIT 2048
#define ZEBRA_MLAG_LEN_SIZE 4