diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-12 08:18:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 08:18:04 -0500 |
| commit | 268ea05ca0f7cc06f7268aee56f2da8fcb1ce669 (patch) | |
| tree | 71c715250b76adcf498a417f65eda1afc3dc616a /zebra/zebra_nhg.c | |
| parent | 578a7f0bbb327bc323f322ec68548daf46b3aae3 (diff) | |
| parent | 30296344d39ac59a81dd4a61b45314febf80af2e (diff) | |
Merge pull request #18092 from FRRouting/mergify/bp/stable/9.1/pr-17935
zebra: include resolving nexthops in nhg hash (backport #17935)
Diffstat (limited to 'zebra/zebra_nhg.c')
| -rw-r--r-- | zebra/zebra_nhg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 804cd48d9c..a7e30530af 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -569,8 +569,7 @@ bool zebra_nhg_hash_equal(const void *arg1, const void *arg2) /* Nexthops should be in-order, so we simply compare them in-place */ for (nexthop1 = nhe1->nhg.nexthop, nexthop2 = nhe2->nhg.nexthop; nexthop1 && nexthop2; - nexthop1 = nexthop1->next, nexthop2 = nexthop2->next) { - + nexthop1 = nexthop_next(nexthop1), nexthop2 = nexthop_next(nexthop2)) { if (!nhg_compare_nexthops(nexthop1, nexthop2)) return false; } @@ -605,8 +604,7 @@ bool zebra_nhg_hash_equal(const void *arg1, const void *arg2) for (nexthop1 = nhe1->backup_info->nhe->nhg.nexthop, nexthop2 = nhe2->backup_info->nhe->nhg.nexthop; nexthop1 && nexthop2; - nexthop1 = nexthop1->next, nexthop2 = nexthop2->next) { - + nexthop1 = nexthop_next(nexthop1), nexthop2 = nexthop_next(nexthop2)) { if (!nhg_compare_nexthops(nexthop1, nexthop2)) return false; } |
