commit | f610b74b14d74a069f61583131e689550fd5bab3 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Mon Jul 11 01:37:28 2011 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 11 01:37:28 2011 -0700 |
tree | 331ce90858ed17ed32b27ff9b283ced43566ea28 | |
parent | cd0893369ca85fd11bc517081b2d9079d2ef2f90 [diff] [blame] |
ipv4: Use universal hash for ARP. We need to make sure the multiplier is odd. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 4d5fc94..50bd960 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c
@@ -334,6 +334,7 @@ ret->hash_buckets = buckets; ret->hash_shift = shift; get_random_bytes(&ret->hash_rnd, sizeof(ret->hash_rnd)); + ret->hash_rnd |= 1; return ret; }