diff options
author | Cong Wang <amwang@redhat.com> | 2013-08-31 01:44:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-31 22:30:00 -0400 |
commit | 034dfc5df99eb8d263211524983b1a737b25c06b (patch) | |
tree | 9a47cd817d42cff6150d8768c2d59d33efdbba1a /net/ipv6 | |
parent | 5f81bd2e5d804ca93f3ec8873451b22d2f454721 (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.c | 9 | ||||
-rw-r--r-- | net/ipv6/addrconf_core.c | 16 |
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 */ | ||
249 | const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; | ||
250 | const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; | ||
251 | const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT; | ||
252 | const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; | ||
253 | const struct in6_addr in6addr_interfacelocal_allnodes = IN6ADDR_INTERFACELOCAL_ALLNODES_INIT; | ||
254 | const struct in6_addr in6addr_interfacelocal_allrouters = IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT; | ||
255 | const 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 */ |
258 | static inline bool addrconf_qdisc_ok(const struct net_device *dev) | 249 | static 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 | ||
102 | const struct ipv6_stub *ipv6_stub __read_mostly; | 102 | const struct ipv6_stub *ipv6_stub __read_mostly; |
103 | EXPORT_SYMBOL_GPL(ipv6_stub); | 103 | EXPORT_SYMBOL_GPL(ipv6_stub); |
104 | |||
105 | /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */ | ||
106 | const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; | ||
107 | EXPORT_SYMBOL(in6addr_loopback); | ||
108 | const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; | ||
109 | EXPORT_SYMBOL(in6addr_any); | ||
110 | const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT; | ||
111 | EXPORT_SYMBOL(in6addr_linklocal_allnodes); | ||
112 | const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; | ||
113 | EXPORT_SYMBOL(in6addr_linklocal_allrouters); | ||
114 | const struct in6_addr in6addr_interfacelocal_allnodes = IN6ADDR_INTERFACELOCAL_ALLNODES_INIT; | ||
115 | EXPORT_SYMBOL(in6addr_interfacelocal_allnodes); | ||
116 | const struct in6_addr in6addr_interfacelocal_allrouters = IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT; | ||
117 | EXPORT_SYMBOL(in6addr_interfacelocal_allrouters); | ||
118 | const struct in6_addr in6addr_sitelocal_allrouters = IN6ADDR_SITELOCAL_ALLROUTERS_INIT; | ||
119 | EXPORT_SYMBOL(in6addr_sitelocal_allrouters); | ||