diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-11 04:37:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-11 04:37:28 -0400 |
commit | f610b74b14d74a069f61583131e689550fd5bab3 (patch) | |
tree | 331ce90858ed17ed32b27ff9b283ced43566ea28 /net/core | |
parent | cd0893369ca85fd11bc517081b2d9079d2ef2f90 (diff) |
ipv4: Use universal hash for ARP.
We need to make sure the multiplier is odd.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/neighbour.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 4d5fc9433fd9..50bd960983e0 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -334,6 +334,7 @@ static struct neigh_hash_table *neigh_hash_alloc(unsigned int shift) | |||
334 | ret->hash_buckets = buckets; | 334 | ret->hash_buckets = buckets; |
335 | ret->hash_shift = shift; | 335 | ret->hash_shift = shift; |
336 | get_random_bytes(&ret->hash_rnd, sizeof(ret->hash_rnd)); | 336 | get_random_bytes(&ret->hash_rnd, sizeof(ret->hash_rnd)); |
337 | ret->hash_rnd |= 1; | ||
337 | return ret; | 338 | return ret; |
338 | } | 339 | } |
339 | 340 | ||