summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.c
diff options
context:
space:
mode:
authorSatheesh Kumar K <sathk@cumulusnetworks.com>2019-11-12 01:41:04 -0800
committerSatheesh Kumar K <sathk@cumulusnetworks.com>2019-11-13 22:47:32 -0800
commit67fa73f29a2a059fb01d8fc7009161f21e1b05da (patch)
treec2fb737745e0b7e487160e2e3a510866a5e33a28 /pimd/pim_mlag.c
parente05ab0b0c8ecdd76afe972572cff2c0f9cc14574 (diff)
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 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c4
1 files changed, 2 insertions, 2 deletions
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++) {