summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-03-08 10:16:52 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:37 -0400
commit8e7663796904f12ab31320d8d5a056da158483fe (patch)
treeaa577bbaaf05a53ff5154e88de61b4e6088db53e /zebra/rib.h
parent5f3c9e520c71993ca65a9aaafd9db715eda0b2e5 (diff)
zebra: Route entries use nexthop entry ID's instead of pointers
Switched the route entries to use ID's instead of pointers. Perform lookups with the ID and then check if its null. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index a95bcc0550..e6d6d87447 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -93,7 +93,8 @@ struct route_entry {
/* Nexthop group from FIB (optional) */
struct nexthop_group fib_ng;
- struct nhg_hash_entry *nhe;
+ /* Nexthop group hash entry ID */
+ uint32_t nhe_id;
/* Tag */
route_tag_t tag;