diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-15 11:16:22 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:36 -0400 |
| commit | eecacedc3b9526b59ef690bce41f41158a137c9f (patch) | |
| tree | 0655771318223c8800ee7ccf851da909cf2641af /zebra/zebra_rnh.c | |
| parent | 6b46851168ef37eaacba28a2a655e15ae5934cd0 (diff) | |
zebra: Remove re->nexthop_num from re
The nexthop_num is not a function of the re. It is owned
by the nexthop group.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rnh.c')
| -rw-r--r-- | zebra/zebra_rnh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index 1494e3bed3..af3c1b818f 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -984,7 +984,8 @@ static int compare_state(struct route_entry *r1, struct route_entry *r2) if (r1->metric != r2->metric) return 1; - if (r1->nexthop_num != r2->nexthop_num) + if (nexthop_group_nexthop_num(r1->ng) + != nexthop_group_nexthop_num(r2->ng)) return 1; if (nexthop_group_hash(r1->ng) != nexthop_group_hash(r2->ng)) |
