mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 11:18:52 +00:00
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:
parent
97c2fb7cdc
commit
e72e37ade7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user