mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
Revert "tcp: Fix IPV6 module build errors"
This reverts commit 3823c8136f.
This commit is contained in:
committed by
Amit Pundir
parent
e193d9de7c
commit
7f3c0b7b8a
@@ -3264,7 +3264,7 @@ static int tcp_is_local(struct net *net, __be32 addr) {
|
||||
return rt->dst.dev && (rt->dst.dev->flags & IFF_LOOPBACK);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_IPV6)
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
static int tcp_is_local6(struct net *net, struct in6_addr *addr) {
|
||||
struct rt6_info *rt6 = rt6_lookup(net, addr, addr, 0, 0);
|
||||
return rt6 && rt6->dst.dev && (rt6->dst.dev->flags & IFF_LOOPBACK);
|
||||
@@ -3332,7 +3332,7 @@ restart:
|
||||
continue;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_IPV6)
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
if (family == AF_INET6) {
|
||||
struct in6_addr *s6;
|
||||
if (!inet->pinet6)
|
||||
@@ -3369,4 +3369,3 @@ restart:
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(tcp_nuke_addr);
|
||||
|
||||
Reference in New Issue
Block a user