diff options
| author | Ralph Loader <suckfish@ihug.co.nz> | 2004-08-02 02:56:51 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-08-02 02:56:51 -0700 |
| commit | 036a2b3735ffdb9a4d153b6b955fa7fb3d40fe3c (patch) | |
| tree | 68d442ba5ca87845d8806dcf6807761e99dcdc27 /include | |
| parent | 47a695210f7070b938e3bf3bfe992980e54d26ab (diff) | |
[IPV6]: Trivial fix for ipv6_addr_hash()
ipv6_addr_hash doesn't do what it's comment says. The comment was
probably what was intended, not that it'll make much difference in
practice.
Signed-off-by: Ralph Loader <suckfish@ihug.co.nz>
Signed-off-by: Yoshifuji Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/addrconf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 6a67ed3434a5..fc2b279cd148 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -178,8 +178,8 @@ static __inline__ u8 ipv6_addr_hash(const struct in6_addr *addr) * This will include the IEEE address token on links that support it. */ - word = addr->s6_addr[2] ^ addr->s6_addr32[3]; - word ^= (word>>16); + word = addr->s6_addr32[2] ^ addr->s6_addr32[3]; + word ^= (word >> 16); word ^= (word >> 8); return ((word ^ (word >> 4)) & 0x0f); |
