]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Fix protobuf build on stable/2.0
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 15 Mar 2017 13:25:43 +0000 (09:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 15 Mar 2017 13:25:43 +0000 (09:25 -0400)
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>
zebra/zebra_fpm_protobuf.c

index 702c355f1acf453d928665aacb0dabafc3ce3006..cd88af134d54a31965f3a337e1da4b15445c67db 100644 (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));