aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-08-31 01:44:31 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-31 22:30:00 -0400
commit034dfc5df99eb8d263211524983b1a737b25c06b (patch)
tree9a47cd817d42cff6150d8768c2d59d33efdbba1a /net/ipv6
parent5f81bd2e5d804ca93f3ec8873451b22d2f454721 (diff)
ipv6: export in6addr_loopback to modules
It is needed by vxlan module. Noticed by Mike. Cc: Mike Rapoport <mike.rapoport@ravellosystems.com> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-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);