aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/addrconf.c9
-rw-r--r--net/ipv6/addrconf_core.c16
2 files changed, 16 insertions, 9 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index a7183fc9bbc2..619451336bf1 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -245,15 +245,6 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
245 .suppress_frag_ndisc = 1, 245 .suppress_frag_ndisc = 1,
246}; 246};
247 247
248/* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */
249const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
250const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
251const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
252const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
253const struct in6_addr in6addr_interfacelocal_allnodes = IN6ADDR_INTERFACELOCAL_ALLNODES_INIT;
254const struct in6_addr in6addr_interfacelocal_allrouters = IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT;
255const struct in6_addr in6addr_sitelocal_allrouters = IN6ADDR_SITELOCAL_ALLROUTERS_INIT;
256
257/* Check if a valid qdisc is available */ 248/* Check if a valid qdisc is available */
258static inline bool addrconf_qdisc_ok(const struct net_device *dev) 249static inline bool addrconf_qdisc_ok(const struct net_device *dev)
259{ 250{
diff --git a/net/ipv6/addrconf_core.c b/net/ipv6/addrconf_core.c
index 93b24c6bcae7..a864033d9e78 100644
--- a/net/ipv6/addrconf_core.c
+++ b/net/ipv6/addrconf_core.c
@@ -101,3 +101,19 @@ EXPORT_SYMBOL(inet6addr_notifier_call_chain);
101 101
102const struct ipv6_stub *ipv6_stub __read_mostly; 102const struct ipv6_stub *ipv6_stub __read_mostly;
103EXPORT_SYMBOL_GPL(ipv6_stub); 103EXPORT_SYMBOL_GPL(ipv6_stub);
104
105/* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */
106const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
107EXPORT_SYMBOL(in6addr_loopback);
108const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
109EXPORT_SYMBOL(in6addr_any);
110const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
111EXPORT_SYMBOL(in6addr_linklocal_allnodes);
112const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
113EXPORT_SYMBOL(in6addr_linklocal_allrouters);
114const struct in6_addr in6addr_interfacelocal_allnodes = IN6ADDR_INTERFACELOCAL_ALLNODES_INIT;
115EXPORT_SYMBOL(in6addr_interfacelocal_allnodes);
116const struct in6_addr in6addr_interfacelocal_allrouters = IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT;
117EXPORT_SYMBOL(in6addr_interfacelocal_allrouters);
118const struct in6_addr in6addr_sitelocal_allrouters = IN6ADDR_SITELOCAL_ALLROUTERS_INIT;
119EXPORT_SYMBOL(in6addr_sitelocal_allrouters);