mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 20:22:47 +00:00
lib: Fix encoding of vrf
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
65e630c051
commit
f3f32e0a70
@ -976,7 +976,7 @@ int zapi_route_encode(u_char cmd, struct stream *s, struct zapi_route *api)
|
|||||||
|
|
||||||
stream_putw(s, api->nexthop_num);
|
stream_putw(s, api->nexthop_num);
|
||||||
if (api->nexthop_num)
|
if (api->nexthop_num)
|
||||||
stream_putw(s, api->nh_vrf_id);
|
stream_putl(s, api->nh_vrf_id);
|
||||||
|
|
||||||
for (i = 0; i < api->nexthop_num; i++) {
|
for (i = 0; i < api->nexthop_num; i++) {
|
||||||
api_nh = &api->nexthops[i];
|
api_nh = &api->nexthops[i];
|
||||||
@ -1127,7 +1127,7 @@ int zapi_route_decode(struct stream *s, struct zapi_route *api)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (api->nexthop_num)
|
if (api->nexthop_num)
|
||||||
STREAM_GETW(s, api->nh_vrf_id);
|
STREAM_GETL(s, api->nh_vrf_id);
|
||||||
|
|
||||||
for (i = 0; i < api->nexthop_num; i++) {
|
for (i = 0; i < api->nexthop_num; i++) {
|
||||||
api_nh = &api->nexthops[i];
|
api_nh = &api->nexthops[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user