Skip to content

Commit 034dfc5

Browse files
Cong Wangdavem330
authored andcommitted
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>
1 parent 5f81bd2 commit 034dfc5

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

‎net/ipv6/addrconf.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,6 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
245245
.suppress_frag_ndisc = 1,
246246
};
247247

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-
257248
/* Check if a valid qdisc is available */
258249
static inline bool addrconf_qdisc_ok(const struct net_device *dev)
259250
{

‎net/ipv6/addrconf_core.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,19 @@ EXPORT_SYMBOL(inet6addr_notifier_call_chain);
101101

102102
const struct ipv6_stub *ipv6_stub __read_mostly;
103103
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);

0 commit comments

Comments
 (0)