summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-05 05:49:27 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-02-05 05:49:27 -0500
commitf3f32e0a70b782c7204967cc466e93adbe721c1c (patch)
tree178b8d0019f32b86b4bcc8388a70f7684212d333
parent65e630c051e8032e9dcc3940fb952769482c3315 (diff)
lib: Fix encoding of vrf
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--lib/zclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index d3717d0cdd..4d5b0f211d 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -976,7 +976,7 @@ int zapi_route_encode(u_char cmd, struct stream *s, struct zapi_route *api)
stream_putw(s, 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++) {
api_nh = &api->nexthops[i];
@@ -1127,7 +1127,7 @@ int zapi_route_decode(struct stream *s, struct zapi_route *api)
}
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++) {
api_nh = &api->nexthops[i];