summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-10 08:42:08 +0200
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-12 06:43:15 +0200
commit3eb84f49290461e2b83d6e8ee1f3f0e504340c8b (patch)
tree5363f47792e3e41921a86e1695f378a8555795f4 /include
parent[IPV6]: Use XOR and OR rather than mutiple ands for ipv6 address comparisons. (diff)
downloadlinux-3eb84f49290461e2b83d6e8ee1f3f0e504340c8b.tar.xz
linux-3eb84f49290461e2b83d6e8ee1f3f0e504340c8b.zip
[IPV6] ADDRCONF: Uninline ipv6_addr_hash().
The function is only used in net/ipv6/addrconf.c. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/addrconf.h19
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)
#define in6_ifa_hold(ifp) atomic_inc(&(ifp)->refcnt)
-/*
- * Hash function taken from net_alias.c
- */
-
-static __inline__ u8 ipv6_addr_hash(const struct in6_addr *addr)
-{
- __u32 word;
-
- /*
- * We perform the hash function over the last 64 bits of the address
- * This will include the IEEE address token on links that support it.
- */
-
- word = (__force u32)(addr->s6_addr32[2] ^ addr->s6_addr32[3]);
- word ^= (word >> 16);
- word ^= (word >> 8);
-
- return ((word ^ (word >> 4)) & 0x0f);
-}
/*
* compute link-local solicited-node multicast address