]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
netfilter: xtables: add missing depends for xt_TEE
authorJan Engelhardt <jengelh@medozas.de>
Wed, 12 May 2010 10:11:35 +0000 (10:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 May 2010 21:54:15 +0000 (14:54 -0700)
Aviod these link-time errors when IPV6=m, XT_TEE=y:

net/built-in.o: In function `tee_tg_route6':
xt_TEE.c:(.text+0x45ca5): undefined reference to `ip6_route_output'
net/built-in.o: In function `tee_tg6':
xt_TEE.c:(.text+0x45d79): undefined reference to `ip6_local_out'

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/Kconfig

index 673a6c8f0e950ecd526243c69d4c4e5978dd72fa..e223f47b8bae1a457779fed1a4c1e2509b707328 100644 (file)
@@ -505,6 +505,7 @@ config NETFILTER_XT_TARGET_RATEEST
 config NETFILTER_XT_TARGET_TEE
        tristate '"TEE" - packet cloning to alternate destiantion'
        depends on NETFILTER_ADVANCED
+       depends on (IPV6 || IPV6=n)
        ---help---
        This option adds a "TEE" target with which a packet can be cloned and
        this clone be rerouted to another nexthop.