Skip to content

Commit 27c565a

Browse files
edumazetdavem330
authored andcommitted
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>
1 parent df7e8e2 commit 27c565a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/net/addrconf.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ struct in6_validator_info {
5959
struct netlink_ext_ack *extack;
6060
};
6161

62-
#define IN6_ADDR_HSIZE_SHIFT 8
63-
#define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT)
64-
6562
int addrconf_init(void);
6663
void addrconf_cleanup(void);
6764

net/ipv6/addrconf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ static int ipv6_generate_stable_address(struct in6_addr *addr,
157157
u8 dad_count,
158158
const struct inet6_dev *idev);
159159

160+
#define IN6_ADDR_HSIZE_SHIFT 8
161+
#define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT)
160162
/*
161163
* Configured unicast address hash table
162164
*/

0 commit comments

Comments
 (0)