]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Fix encoding of vrf
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Feb 2018 10:49:27 +0000 (05:49 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Feb 2018 10:49:27 +0000 (05:49 -0500)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c

index d3717d0cdd2022a5ab22c35e74edca34a3970658..4d5b0f211d41c36962ced156f7644b8597127098 100644 (file)
@@ -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];