summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_lsdb.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-06 15:30:31 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-11 13:47:31 +0200
commit4cb260c33e7656d35167beb3d006e6a78766716e (patch)
treea48ac21c81330cc2f94b6f4cbc8eb9f3de8cdb71 /ospf6d/ospf6_lsdb.c
parent9dc716d64c1e2aa7dbd894f0eaa4c3363391941f (diff)
lib: add some abstraction guards for table code
route_node->parent and route_node->link shouldn't be touched by user code since that is a recipe for trouble once we have a hash table in parallel. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_lsdb.c')
-rw-r--r--ospf6d/ospf6_lsdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c
index cb522226ac..ce31e25a2f 100644
--- a/ospf6d/ospf6_lsdb.c
+++ b/ospf6d/ospf6_lsdb.c
@@ -242,6 +242,9 @@ ospf6_lsdb_lookup_next (u_int16_t type, u_int32_t id, u_int32_t adv_router,
zlog_debug ("lsdb_lookup_next: key: %s", buf);
}
+ /* FIXME: need to find a better way here to work without sticking our
+ * hands in node->link, e.g. route_node_match_maynull() */
+
node = lsdb->table->top;
/* walk down tree. */
while (node && node->p.prefixlen <= p->prefixlen &&