diff options
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r-- | include/net/addrconf.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 1dc9d03372d9..1ba4e5bf5801 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -189,25 +189,6 @@ static inline void in6_ifa_put(struct inet6_ifaddr *ifp) | |||
189 | #define in6_ifa_hold(ifp) atomic_inc(&(ifp)->refcnt) | 189 | #define in6_ifa_hold(ifp) atomic_inc(&(ifp)->refcnt) |
190 | 190 | ||
191 | 191 | ||
192 | /* | ||
193 | * Hash function taken from net_alias.c | ||
194 | */ | ||
195 | |||
196 | static __inline__ u8 ipv6_addr_hash(const struct in6_addr *addr) | ||
197 | { | ||
198 | __u32 word; | ||
199 | |||
200 | /* | ||
201 | * We perform the hash function over the last 64 bits of the address | ||
202 | * This will include the IEEE address token on links that support it. | ||
203 | */ | ||
204 | |||
205 | word = (__force u32)(addr->s6_addr32[2] ^ addr->s6_addr32[3]); | ||
206 | word ^= (word >> 16); | ||
207 | word ^= (word >> 8); | ||
208 | |||
209 | return ((word ^ (word >> 4)) & 0x0f); | ||
210 | } | ||
211 | 192 | ||
212 | /* | 193 | /* |
213 | * compute link-local solicited-node multicast address | 194 | * compute link-local solicited-node multicast address |