diff options
author | Pavel Tvrdík <pawel.tvrdik@gmail.com> | 2016-01-20 15:38:37 +0100 |
---|---|---|
committer | Pavel Tvrdík <pawel.tvrdik@gmail.com> | 2016-01-20 16:46:58 +0100 |
commit | 0264ccf6f4acaea5313dee2cd3bc3bdb28c74f60 (patch) | |
tree | ea9267e1209f85c51a266bb8950edff418586b58 /nest/rt-fib.c | |
parent | cb1bd816db5b69acb8c6f72211d13f987a494304 (diff) |
Rewrite roa_check() for integrated BIRD
Thanks to Ondrej Zajicek for his support with writing this code.
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 |