summaryrefslogtreecommitdiffstats
path: root/lib/nexthop_group.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-11-22 21:30:53 +0100
committerMark Stapp <mjs@voltanet.io>2019-12-04 14:13:52 +0100
commit0eb97b860dc94329cf9add9f8f3d3a2c7f539568 (patch)
tree4382d83b863bbec02b3df6adf9060e7686a7a814 /lib/nexthop_group.c
parentlib: add some nexthop ctors (diff)
downloadfrr-0eb97b860dc94329cf9add9f8f3d3a2c7f539568.tar.xz
frr-0eb97b860dc94329cf9add9f8f3d3a2c7f539568.zip
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.c4
1 files changed, 2 insertions, 2 deletions
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;