From 0f7d5b1a889142cdcda0546d8adcc76de465ffb8 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 20 Dec 2015 18:16:48 +0100 Subject: Nest: Reimplement fib_route() and add some consts --- nest/route.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nest/route.h') 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 */ -- cgit v1.2.3