Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
27c565ae df7e8e2e

+2 -3
-3
include/net/addrconf.h
··· 59 59 struct netlink_ext_ack *extack; 60 60 }; 61 61 62 - #define IN6_ADDR_HSIZE_SHIFT 8 63 - #define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT) 64 - 65 62 int addrconf_init(void); 66 63 void addrconf_cleanup(void); 67 64
+2
net/ipv6/addrconf.c
··· 157 157 u8 dad_count, 158 158 const struct inet6_dev *idev); 159 159 160 + #define IN6_ADDR_HSIZE_SHIFT 8 161 + #define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT) 160 162 /* 161 163 * Configured unicast address hash table 162 164 */