diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-11-22 15:30:53 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-12-04 08:13:52 -0500 |
| commit | 0eb97b860dc94329cf9add9f8f3d3a2c7f539568 (patch) | |
| tree | 4382d83b863bbec02b3df6adf9060e7686a7a814 /lib/nexthop_group.c | |
| parent | f3323df26e425515fdcadf3aa9bd336bb54780b3 (diff) | |
lib,zebra: use nhg_hash_entry pointer in route_entry
Replace the existing list of nexthops (via a nexthop_group
struct) in the route_entry with a direct pointer to zebra's
new shared group (from zebra_nhg.h). This allows more
direct access to that shared group and the info it carries.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/nexthop_group.c')
| -rw-r--r-- | lib/nexthop_group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 9552f89568..3e08f1811e 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -233,8 +233,8 @@ void _nexthop_add(struct nexthop **target, struct nexthop *nexthop) nexthop->prev = last; } -void _nexthop_group_add_sorted(struct nexthop_group *nhg, - struct nexthop *nexthop) +void nexthop_group_add_sorted(struct nexthop_group *nhg, + struct nexthop *nexthop) { struct nexthop *position, *prev, *tail; |
