mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:01:42 +00:00
Merge pull request #5541 from sworleys/NHG-Fixes
zebra: a couple nhg fixes
This commit is contained in:
commit
a91d3df894
@ -593,7 +593,7 @@ zebra_nhg_find_nexthop(uint32_t id, struct nexthop *nh, afi_t afi, int type)
|
||||
|
||||
nexthop_group_add_sorted(&nhg, nh);
|
||||
|
||||
zebra_nhg_find(&nhe, id, &nhg, NULL, nh->vrf_id, afi, 0);
|
||||
zebra_nhg_find(&nhe, id, &nhg, NULL, nh->vrf_id, afi, type);
|
||||
|
||||
return nhe;
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ int route_entry_update_nhe(struct route_entry *re, struct nhg_hash_entry *new)
|
||||
|
||||
if (old)
|
||||
zebra_nhg_decrement_ref(old);
|
||||
} else if (!re->nhe->nhg)
|
||||
} else if (!re->nhe)
|
||||
/* This is the first time it's being attached */
|
||||
route_entry_attach_ref(re, new);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user