mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 06:34:44 +00:00
zebra: fix nexthop_group conversion in fpm code
Recent commit that embedded the nhg_hash_entry's group missed a couple of fpm modules. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
890b3450ea
commit
97cd9bfc07
@ -90,7 +90,7 @@ static int zfpm_dt_find_route(rib_dest_t **dest_p, struct route_entry **re_p)
|
||||
if (!re)
|
||||
continue;
|
||||
|
||||
if (nexthop_group_active_nexthop_num(re->nhe->nhg) == 0)
|
||||
if (nexthop_group_active_nexthop_num(&(re->nhe->nhg)) == 0)
|
||||
continue;
|
||||
|
||||
*dest_p = dest;
|
||||
|
@ -173,7 +173,7 @@ static Fpm__AddRoute *create_add_route_message(qpb_allocator_t *allocator,
|
||||
* Figure out the set of nexthops to be added to the message.
|
||||
*/
|
||||
num_nhs = 0;
|
||||
for (ALL_NEXTHOPS_PTR(re->nhe->nhg, nexthop)) {
|
||||
for (ALL_NEXTHOPS(re->nhe->nhg, nexthop)) {
|
||||
if (num_nhs >= zrouter.multipath_num)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user