summaryrefslogtreecommitdiff
path: root/lib/ip.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ip.h')
-rw-r--r--lib/ip.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ip.h b/lib/ip.h
index cc6be384..b78a5e22 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -186,13 +186,7 @@ static inline int ipa_nonzero2(ip_addr a)
*/
static inline u32 ip4_hash(ip4_addr a)
-{
- /* Returns a 32-bit value, although low-order bits are not mixed */
- u32 x = _I(a);
- x ^= x << 16;
- x ^= x << 12;
- return x;
-}
+{ return u32_hash(_I(a)); }
static inline u32 ip6_hash(ip6_addr a)
{