mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
bgpd/zebra: use stream_putl/getl to send VNIs
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
parent
cf29971433
commit
cc6d54769b
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user