zebra: Fix protobuf build on stable/2.0

When compiling w/ --enable-protobuf on stable/2.0
we were attempting to dereference the zvrf->vrf_id
which got moved to zvrf->vrf->vrf_id.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-03-15 09:25:43 -04:00
parent 81180ab813
commit 9cbae545f0

View File

@ -53,7 +53,7 @@ create_delete_route_message (qpb_allocator_t *allocator, rib_dest_t *dest,
}
fpm__delete_route__init(msg);
msg->vrf_id = rib_dest_vrf(dest)->vrf_id;
msg->vrf_id = rib_dest_vrf(dest)->vrf->vrf_id;
qpb_address_family_set(&msg->address_family, rib_dest_af(dest));
@ -159,7 +159,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest,
fpm__add_route__init(msg);
msg->vrf_id = rib_dest_vrf(dest)->vrf_id;
msg->vrf_id = rib_dest_vrf(dest)->vrf->vrf_id;
qpb_address_family_set (&msg->address_family, rib_dest_af(dest));