ipv4: Use universal hash for ARP.
We need to make sure the multiplier is odd. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -334,6 +334,7 @@ static struct neigh_hash_table *neigh_hash_alloc(unsigned int shift)
|
||||
ret->hash_buckets = buckets;
|
||||
ret->hash_shift = shift;
|
||||
get_random_bytes(&ret->hash_rnd, sizeof(ret->hash_rnd));
|
||||
ret->hash_rnd |= 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user