From 67fa73f29a2a059fb01d8fc7009161f21e1b05da Mon Sep 17 00:00:00 2001 From: Satheesh Kumar K Date: Tue, 12 Nov 2019 01:41:04 -0800 Subject: 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 --- pimd/pim_mlag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pimd/pim_mlag.c') diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c index 740373bc40..a66f604d52 100644 --- a/pimd/pim_mlag.c +++ b/pimd/pim_mlag.c @@ -141,7 +141,7 @@ int pim_zebra_mlag_handle_msg(struct stream *s, int len) } break; case MLAG_MROUTE_ADD_BULK: { struct mlag_mroute_add msg; - int i = 0; + int i; for (i = 0; i < mlag_msg.msg_cnt; i++) { @@ -153,7 +153,7 @@ int pim_zebra_mlag_handle_msg(struct stream *s, int len) } break; case MLAG_MROUTE_DEL_BULK: { struct mlag_mroute_del msg; - int i = 0; + int i; for (i = 0; i < mlag_msg.msg_cnt; i++) { -- cgit v1.2.3