From 586c1800c447ff099d34889b23647c4733876d9b Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Wed, 27 Jun 2018 16:51:53 +0200 Subject: Nest: Neighbor cache cleanups Simplify neighbor cache code, fix several minor bugs, and improve handling of ONLINK flag. --- nest/rt-table.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index de7b05fc..0c0e365e 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -39,6 +39,7 @@ #include "lib/string.h" #include "conf/conf.h" #include "filter/filter.h" +#include "lib/hash.h" #include "lib/string.h" #include "lib/alloca.h" @@ -2220,13 +2221,6 @@ rt_feed_channel_abort(struct channel *c) } } -static inline unsigned -ptr_hash(void *ptr) -{ - uintptr_t p = (uintptr_t) ptr; - return p ^ (p << 8) ^ (p >> 16); -} - static inline u32 hc_hash(ip_addr a, rtable *dep) { -- cgit v1.2.3