mirror of
https://git.burble.com/burble.dn42/bird.git
synced 2024-05-12 03:55:05 +00:00
Nest: Neighbor cache cleanups
Simplify neighbor cache code, fix several minor bugs, and improve handling of ONLINK flag.
This commit is contained in:
@ -230,4 +230,11 @@ mem_hash(void *p, uint s)
|
||||
return mem_hash_value(&h);
|
||||
}
|
||||
|
||||
static inline uint
|
||||
ptr_hash(void *ptr)
|
||||
{
|
||||
uintptr_t p = (uintptr_t) ptr;
|
||||
return p ^ (p << 8) ^ (p >> 16);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user