From cc6d54769b957b3be84fcabda09332991e51eb28 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Thu, 1 Mar 2018 17:18:34 -0800 Subject: [PATCH] bgpd/zebra: use stream_putl/getl to send VNIs Signed-off-by: Mitesh Kanjariya --- bgpd/bgp_zebra.c | 2 +- zebra/zebra_vxlan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 7bb01b60aa..a86ea0e522 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1913,7 +1913,7 @@ int bgp_zebra_advertise_gw_macip(struct bgp *bgp, int advertise, vni_t vni) zclient_create_header(s, ZEBRA_ADVERTISE_DEFAULT_GW, bgp->vrf_id); stream_putc(s, advertise); - stream_put3(s, vni); + stream_putl(s, vni); stream_putw_at(s, 0, stream_get_endp(s)); return zclient_send_message(zclient); diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 83c241632d..efc3e8177a 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -6684,7 +6684,7 @@ void zebra_vxlan_advertise_gw_macip(ZAPI_HANDLER_ARGS) s = msg; STREAM_GETC(s, advertise); - STREAM_GET(&vni, s, 3); + STREAM_GETL(s, vni); if (!vni) { if (IS_ZEBRA_DEBUG_VXLAN) -- 2.39.5