summaryrefslogtreecommitdiff
path: root/zebra/zebra_nhg.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-01-29 15:43:52 -0500
committerMark Stapp <mjs@voltanet.io>2021-02-19 15:38:37 -0500
commit9b4ab9098486043627393c055c1f8437e69fb108 (patch)
treeac456d1059a335de03dd1bb21f5734aeb81f801d /zebra/zebra_nhg.h
parentdc86ef74e68d575f4beec0197177e90dfb42c643 (diff)
zebra: support nh resolution without a route
Start reorg of zebra nexthop-resolution so that we can use the resolution logic for nexthop-groups as well as routes. Change the signature of the core nexthop_active() api so that it does not require a route-entry or route-node. Move some of the logic around so that nexthop-specific logic is in nexthop_active(), while route-oriented logic is in nexthop_active_check(). Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_nhg.h')
-rw-r--r--zebra/zebra_nhg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h
index db20f2beaf..2de34fec68 100644
--- a/zebra/zebra_nhg.h
+++ b/zebra/zebra_nhg.h
@@ -180,8 +180,9 @@ struct nhg_ctx {
vrf_id_t vrf_id;
afi_t afi;
+
/*
- * This should only every be ZEBRA_ROUTE_NHG unless we get a a kernel
+ * This should only ever be ZEBRA_ROUTE_NHG unless we get a a kernel
* created nexthop not made by us.
*/
int type;