diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2014-05-06 19:21:51 +0200 |
---|---|---|
committer | Christian Franke <chris@opensourcerouting.org> | 2017-01-30 13:47:04 +0100 |
commit | 61cdc88971be14970d2d9ce56275387a246ac1c3 (patch) | |
tree | eed2d005b641afe94be63eaaa221382a0ee01bce /lib/table.h | |
parent | *: read and ignore srcdest routes on ZAPI (diff) | |
download | frr-61cdc88971be14970d2d9ce56275387a246ac1c3.tar.xz frr-61cdc88971be14970d2d9ce56275387a246ac1c3.zip |
lib: add route_node_lookup_maynull
The sourcedest code needs to get the route_node even if its info pointer
is NULL (which occurs when there are srcdest routes, but no general
destination route.)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/table.h')
-rw-r--r-- | lib/table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/table.h b/lib/table.h index 5f3eb8de3..e35e55dc1 100644 --- a/lib/table.h +++ b/lib/table.h @@ -157,6 +157,8 @@ extern struct route_node *route_node_get (struct route_table *const, const struct prefix *); extern struct route_node *route_node_lookup (const struct route_table *, const struct prefix *); +extern struct route_node *route_node_lookup_maynull (const struct route_table *, + const struct prefix *); extern struct route_node *route_lock_node (struct route_node *node); extern struct route_node *route_node_match (const struct route_table *, const struct prefix *); |