OSDN Git Service

Revert "tcp: Fix IPV6 module build errors"
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 21 Apr 2016 22:43:29 +0000 (15:43 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 21 Apr 2016 22:43:29 +0000 (15:43 -0700)
This reverts commit 3823c8136f2170b3ac5e6a5f8b857746a786e845.

net/ipv4/tcp.c

index b799f20..c0e0fd2 100644 (file)
@@ -3260,7 +3260,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);
@@ -3328,7 +3328,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)
@@ -3365,4 +3365,3 @@ restart:
 
        return 0;
 }
-EXPORT_SYMBOL_GPL(tcp_nuke_addr);