summaryrefslogtreecommitdiff
path: root/nest/rt-fib.c
diff options
context:
space:
mode:
authorPavel Tvrdík <pawel.tvrdik@gmail.com>2016-01-20 15:38:37 +0100
committerPavel Tvrdík <pawel.tvrdik@gmail.com>2016-01-20 16:46:58 +0100
commit0264ccf6f4acaea5313dee2cd3bc3bdb28c74f60 (patch)
treeea9267e1209f85c51a266bb8950edff418586b58 /nest/rt-fib.c
parentcb1bd816db5b69acb8c6f72211d13f987a494304 (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.c9
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