diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-10 06:15:15 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-22 06:50:56 -0400 |
commit | a0f65a267dd62aef4e003f833ea6290fd1e07b34 (patch) | |
tree | b37ba10499aca354aa66b23dfe0d4b7a26d6ee61 | |
parent | 5676cc7bfe1e388e87843f71daa229610385b41e (diff) |
netfilter: xt_LOG: use CONFIG_IP6_NF_IPTABLES instead of CONFIG_IPV6
This fixes the following linking error:
xt_LOG.c:(.text+0x789b1): undefined reference to `ip6t_ext_hdr'
ifdefs have to use CONFIG_IP6_NF_IPTABLES instead of CONFIG_IPV6.
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/xt_LOG.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/netfilter/xt_LOG.c b/net/netfilter/xt_LOG.c index f99f8dee238b..ff5f75fddb15 100644 --- a/net/netfilter/xt_LOG.c +++ b/net/netfilter/xt_LOG.c | |||
@@ -480,7 +480,7 @@ ipt_log_packet(u_int8_t pf, | |||
480 | sb_close(m); | 480 | sb_close(m); |
481 | } | 481 | } |
482 | 482 | ||
483 | #if IS_ENABLED(CONFIG_IPV6) | 483 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
484 | /* One level of recursion won't kill us */ | 484 | /* One level of recursion won't kill us */ |
485 | static void dump_ipv6_packet(struct sbuff *m, | 485 | static void dump_ipv6_packet(struct sbuff *m, |
486 | const struct nf_loginfo *info, | 486 | const struct nf_loginfo *info, |
@@ -824,7 +824,7 @@ log_tg(struct sk_buff *skb, const struct xt_action_param *par) | |||
824 | if (par->family == NFPROTO_IPV4) | 824 | if (par->family == NFPROTO_IPV4) |
825 | ipt_log_packet(NFPROTO_IPV4, par->hooknum, skb, par->in, | 825 | ipt_log_packet(NFPROTO_IPV4, par->hooknum, skb, par->in, |
826 | par->out, &li, loginfo->prefix); | 826 | par->out, &li, loginfo->prefix); |
827 | #if IS_ENABLED(CONFIG_IPV6) | 827 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
828 | else if (par->family == NFPROTO_IPV6) | 828 | else if (par->family == NFPROTO_IPV6) |
829 | ip6t_log_packet(NFPROTO_IPV6, par->hooknum, skb, par->in, | 829 | ip6t_log_packet(NFPROTO_IPV6, par->hooknum, skb, par->in, |
830 | par->out, &li, loginfo->prefix); | 830 | par->out, &li, loginfo->prefix); |
@@ -864,7 +864,7 @@ static struct xt_target log_tg_regs[] __read_mostly = { | |||
864 | .checkentry = log_tg_check, | 864 | .checkentry = log_tg_check, |
865 | .me = THIS_MODULE, | 865 | .me = THIS_MODULE, |
866 | }, | 866 | }, |
867 | #if IS_ENABLED(CONFIG_IPV6) | 867 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
868 | { | 868 | { |
869 | .name = "LOG", | 869 | .name = "LOG", |
870 | .family = NFPROTO_IPV6, | 870 | .family = NFPROTO_IPV6, |
@@ -882,7 +882,7 @@ static struct nf_logger ipt_log_logger __read_mostly = { | |||
882 | .me = THIS_MODULE, | 882 | .me = THIS_MODULE, |
883 | }; | 883 | }; |
884 | 884 | ||
885 | #if IS_ENABLED(CONFIG_IPV6) | 885 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
886 | static struct nf_logger ip6t_log_logger __read_mostly = { | 886 | static struct nf_logger ip6t_log_logger __read_mostly = { |
887 | .name = "ip6t_LOG", | 887 | .name = "ip6t_LOG", |
888 | .logfn = &ip6t_log_packet, | 888 | .logfn = &ip6t_log_packet, |
@@ -899,7 +899,7 @@ static int __init log_tg_init(void) | |||
899 | return ret; | 899 | return ret; |
900 | 900 | ||
901 | nf_log_register(NFPROTO_IPV4, &ipt_log_logger); | 901 | nf_log_register(NFPROTO_IPV4, &ipt_log_logger); |
902 | #if IS_ENABLED(CONFIG_IPV6) | 902 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
903 | nf_log_register(NFPROTO_IPV6, &ip6t_log_logger); | 903 | nf_log_register(NFPROTO_IPV6, &ip6t_log_logger); |
904 | #endif | 904 | #endif |
905 | return 0; | 905 | return 0; |
@@ -908,7 +908,7 @@ static int __init log_tg_init(void) | |||
908 | static void __exit log_tg_exit(void) | 908 | static void __exit log_tg_exit(void) |
909 | { | 909 | { |
910 | nf_log_unregister(&ipt_log_logger); | 910 | nf_log_unregister(&ipt_log_logger); |
911 | #if IS_ENABLED(CONFIG_IPV6) | 911 | #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES) |
912 | nf_log_unregister(&ip6t_log_logger); | 912 | nf_log_unregister(&ip6t_log_logger); |
913 | #endif | 913 | #endif |
914 | xt_unregister_targets(log_tg_regs, ARRAY_SIZE(log_tg_regs)); | 914 | xt_unregister_targets(log_tg_regs, ARRAY_SIZE(log_tg_regs)); |