Fix bug with NH macro in zebra_fpm_protobuf

One occurrence was missing to be adpated the new macro definition for
multiple NH recursion levels.
This commit is contained in:
ßingen 2017-07-10 15:16:38 +02:00
parent 97c2fb7cdc
commit e72e37ade7

View File

@ -145,8 +145,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest,
{ {
Fpm__AddRoute *msg; Fpm__AddRoute *msg;
int discard; int discard;
struct nexthop *nexthop, *tnexthop; struct nexthop *nexthop;
int recursing;
uint num_nhs, u; uint num_nhs, u;
struct nexthop *nexthops[MULTIPATH_NUM]; struct nexthop *nexthops[MULTIPATH_NUM];
@ -195,7 +194,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest,
* Figure out the set of nexthops to be added to the message. * Figure out the set of nexthops to be added to the message.
*/ */
num_nhs = 0; num_nhs = 0;
for (ALL_NEXTHOPS_RO (re->nexthop, nexthop, tnexthop, recursing)) for (ALL_NEXTHOPS_RO (re->nexthop, nexthop))
{ {
if (num_nhs >= multipath_num) if (num_nhs >= multipath_num)
break; break;