]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_TEE: resolve unknown symbol error with CONFIG_IPV6=n
authorFlorian Westphal <fwestphal@astaro.com>
Thu, 5 Mar 2009 10:01:50 +0000 (11:01 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 6 Mar 2009 23:48:16 +0000 (00:48 +0100)
WARNING: xt_TEE.ko needs unknown symbol ip6_route_output

Signed-off-by: Florian Westphal <fwestphal@astaro.com>
doc/changelog.txt
extensions/xt_TEE.c

index ebfd95dd7ffb68f57f3dcc381546a26ee21f521a..bd7670275c04842a7da683cca8138dba65842ffd 100644 (file)
@@ -4,6 +4,7 @@
 - rename xt_portscan to xt_lscan ("low-level scan") because
   "portscan" as a wor caused confusion
 - revert "TEE: do not use TOS for routing"
+- xt_TEE: resolve unknown symbol error with CONFIG_IPV6=n
 
 
 Xtables-addons 1.10 (February 18 2009)
index d137266949bacdf89e18dee0531f699060ffede9..4bac6822fa89c1791ce39492e2daa341ea4744b2 100644 (file)
@@ -26,6 +26,9 @@
 #      include <net/netfilter/nf_conntrack.h>
 static struct nf_conn tee_track;
 #endif
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
+#      define WITH_IPV6 1
+#endif
 
 #include "compat_xtables.h"
 #include "xt_TEE.h"
@@ -212,6 +215,7 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
        return XT_CONTINUE;
 }
 
+#ifdef WITH_IPV6
 static bool
 tee_tg_route6(struct sk_buff *skb, const struct xt_tee_tginfo *info)
 {
@@ -265,6 +269,7 @@ tee_tg6(struct sk_buff **pskb, const struct xt_target_param *par)
 
        return XT_CONTINUE;
 }
+#endif /* WITH_IPV6 */
 
 static bool tee_tg_check(const struct xt_tgchk_param *par)
 {
@@ -286,6 +291,7 @@ static struct xt_target tee_tg_reg[] __read_mostly = {
                .checkentry = tee_tg_check,
                .me         = THIS_MODULE,
        },
+#ifdef WITH_IPV6
        {
                .name       = "TEE",
                .revision   = 0,
@@ -296,6 +302,7 @@ static struct xt_target tee_tg_reg[] __read_mostly = {
                .checkentry = tee_tg_check,
                .me         = THIS_MODULE,
        },
+#endif
 };
 
 static int __init tee_tg_init(void)