]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ip_gre: Fix dependencies wrt. ipv6.
authorDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2010 05:37:56 +0000 (22:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2010 05:37:56 +0000 (22:37 -0700)
The GRE tunnel driver needs to invoke icmpv6 helpers in the
ipv6 stack when ipv6 support is enabled.

Therefore if IPV6 is enabled, we have to enforce that GRE's
enabling (modular or static) matches that of ipv6.

Reported-by: Patrick McHardy <kaber@trash.net>
Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/Kconfig

index 571f8950ed06f585f4dca482037d4b7985c256af..72380a30d1c89ba1f36f1b2034972f302e886c37 100644 (file)
@@ -217,6 +217,7 @@ config NET_IPIP
 
 config NET_IPGRE
        tristate "IP: GRE tunnels over IP"
+       depends on IPV6 || IPV6=n
        help
          Tunneling means encapsulating data of one protocol type within
          another protocol and sending it over a channel that understands the