summaryrefslogtreecommitdiff
path: root/nest/route.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-12-20 18:16:48 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-12-20 18:16:48 +0100
commit0f7d5b1a889142cdcda0546d8adcc76de465ffb8 (patch)
tree16c4f1d1300789531e856c3303e28de5dee45f29 /nest/route.h
parent29a6416276a04ca1fc2bc64ebc7ef559918d78d8 (diff)
Nest: Reimplement fib_route() and add some consts
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h
index 1a436ba4..5db84650 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -66,9 +66,9 @@ struct fib {
};
void fib_init(struct fib *f, pool *p, uint addr_type, uint node_size, uint node_offset, uint hash_order, fib_init_fn init);
-void *fib_find(struct fib *, net_addr *); /* Find or return NULL if doesn't exist */
-void *fib_get(struct fib *, net_addr *); /* Find or create new if nonexistent */
-void *fib_route(struct fib *, net_addr *); /* Longest-match routing lookup */
+void *fib_find(struct fib *, const net_addr *); /* Find or return NULL if doesn't exist */
+void *fib_get(struct fib *, const net_addr *); /* Find or create new if nonexistent */
+void *fib_route(struct fib *, const net_addr *); /* Longest-match routing lookup */
void fib_delete(struct fib *, void *); /* Remove fib entry */
void fib_free(struct fib *); /* Destroy the fib */
void fib_check(struct fib *); /* Consistency check for debugging */