mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ipv6: Use universal hash for NDISC.
In order to perform a proper universal hash on a vector of integers, we have to use different universal hashes on each vector element. Which means we need 4 different hash randoms for ipv6. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
32288eb4d9
commit
2c2aba6c56
7 changed files with 32 additions and 21 deletions
|
|
@ -121,7 +121,7 @@
|
|||
/*
|
||||
* Interface to generic neighbour cache.
|
||||
*/
|
||||
static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 rnd);
|
||||
static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd);
|
||||
static int arp_constructor(struct neighbour *neigh);
|
||||
static void arp_solicit(struct neighbour *neigh, struct sk_buff *skb);
|
||||
static void arp_error_report(struct neighbour *neigh, struct sk_buff *skb);
|
||||
|
|
@ -215,9 +215,9 @@ int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir)
|
|||
|
||||
static u32 arp_hash(const void *pkey,
|
||||
const struct net_device *dev,
|
||||
__u32 hash_rnd)
|
||||
__u32 *hash_rnd)
|
||||
{
|
||||
return arp_hashfn(*(u32 *)pkey, dev, hash_rnd);
|
||||
return arp_hashfn(*(u32 *)pkey, dev, *hash_rnd);
|
||||
}
|
||||
|
||||
static int arp_constructor(struct neighbour *neigh)
|
||||
|
|
|
|||
Loading…
Reference in a new issue