diff options
Diffstat (limited to 'nest/rt-fib.c')
-rw-r--r-- | nest/rt-fib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nest/rt-fib.c b/nest/rt-fib.c index 8bf67f8d..55387c5e 100644 --- a/nest/rt-fib.c +++ b/nest/rt-fib.c @@ -195,6 +195,15 @@ fib_hash(struct fib *f, const net_addr *a) } } +void * +fib_get_chain(struct fib *f, const net_addr *a) +{ + ASSERT(f->addr_type == a->type); + + struct fib_node *e = f->hash_table[fib_hash(f, a)]; + return e; +} + /** * fib_find - search for FIB node by prefix * @f: FIB to search in |