summaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-11-04 16:53:27 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-05 01:17:27 +0100
commit27c565ae9d554fa1c00c799754cff43476c8d3b5 (patch)
tree91a10204e5f8ccb06b8b1fea22fcfe9d0649656b /net/ipv6/addrconf.c
parentpktgen: do not abuse IN6_ADDR_HSIZE (diff)
downloadlinux-27c565ae9d554fa1c00c799754cff43476c8d3b5.tar.xz
linux-27c565ae9d554fa1c00c799754cff43476c8d3b5.zip
ipv6: remove IN6_ADDR_HSIZE from addrconf.h
IN6_ADDR_HSIZE is private to addrconf.c, move it here to avoid confusion. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 69b8cdb43aa2..66d8c3d912fd 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -157,6 +157,8 @@ static int ipv6_generate_stable_address(struct in6_addr *addr,
u8 dad_count,
const struct inet6_dev *idev);
+#define IN6_ADDR_HSIZE_SHIFT 8
+#define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT)
/*
* Configured unicast address hash table
*/