From 0eb97b860dc94329cf9add9f8f3d3a2c7f539568 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 22 Nov 2019 15:30:53 -0500 Subject: 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 --- lib/nexthop_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/nexthop_group.c') diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 9552f8956..3e08f1811 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; -- cgit v1.2.3