OSDN Git Service

ipv6: remove IN6_ADDR_HSIZE from addrconf.h
authorEric Dumazet <edumazet@google.com>
Sat, 4 Nov 2017 15:53:27 +0000 (08:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 00:17:27 +0000 (09:17 +0900)
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>
include/net/addrconf.h
net/ipv6/addrconf.c

index 3357332..b623b65 100644 (file)
@@ -59,9 +59,6 @@ struct in6_validator_info {
        struct netlink_ext_ack  *extack;
 };
 
-#define IN6_ADDR_HSIZE_SHIFT   8
-#define IN6_ADDR_HSIZE         (1 << IN6_ADDR_HSIZE_SHIFT)
-
 int addrconf_init(void);
 void addrconf_cleanup(void);
 
index 69b8cdb..66d8c3d 100644 (file)
@@ -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
  */