mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
xt_TEE: resolve unknown symbol error with CONFIG_IPV6=n
WARNING: xt_TEE.ko needs unknown symbol ip6_route_output Signed-off-by: Florian Westphal <fwestphal@astaro.com>
This commit is contained in:

committed by
Jan Engelhardt

parent
621cef39f5
commit
d2d8712980
@@ -4,6 +4,7 @@
|
|||||||
- rename xt_portscan to xt_lscan ("low-level scan") because
|
- rename xt_portscan to xt_lscan ("low-level scan") because
|
||||||
"portscan" as a wor caused confusion
|
"portscan" as a wor caused confusion
|
||||||
- revert "TEE: do not use TOS for routing"
|
- 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)
|
Xtables-addons 1.10 (February 18 2009)
|
||||||
|
@@ -26,6 +26,9 @@
|
|||||||
# include <net/netfilter/nf_conntrack.h>
|
# include <net/netfilter/nf_conntrack.h>
|
||||||
static struct nf_conn tee_track;
|
static struct nf_conn tee_track;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||||
|
# define WITH_IPV6 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "compat_xtables.h"
|
#include "compat_xtables.h"
|
||||||
#include "xt_TEE.h"
|
#include "xt_TEE.h"
|
||||||
@@ -212,6 +215,7 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
|
|||||||
return XT_CONTINUE;
|
return XT_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_IPV6
|
||||||
static bool
|
static bool
|
||||||
tee_tg_route6(struct sk_buff *skb, const struct xt_tee_tginfo *info)
|
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;
|
return XT_CONTINUE;
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_IPV6 */
|
||||||
|
|
||||||
static bool tee_tg_check(const struct xt_tgchk_param *par)
|
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,
|
.checkentry = tee_tg_check,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
},
|
},
|
||||||
|
#ifdef WITH_IPV6
|
||||||
{
|
{
|
||||||
.name = "TEE",
|
.name = "TEE",
|
||||||
.revision = 0,
|
.revision = 0,
|
||||||
@@ -296,6 +302,7 @@ static struct xt_target tee_tg_reg[] __read_mostly = {
|
|||||||
.checkentry = tee_tg_check,
|
.checkentry = tee_tg_check,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
},
|
},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init tee_tg_init(void)
|
static int __init tee_tg_init(void)
|
||||||
|
Reference in New Issue
Block a user