aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-06-09 15:03:07 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2011-12-27 14:31:31 -0500
commitd446a8202c81d95f91b1682fc67e7fadd9a31389 (patch)
treee3e7dcc79eab38846b53af613929b68aa0318752 /net
parentc0d2b8376ae2d74aa862e946a372502603e9066d (diff)
netfilter: xtables: move ipt_ecn to xt_ecn
Prepare the ECN match for augmentation by an IPv6 counterpart. Since no symbol dependencies to ipv6.ko are added, having a single ecn match module is the more so welcome. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/Kconfig10
-rw-r--r--net/ipv4/netfilter/Makefile1
-rw-r--r--net/netfilter/Kconfig9
-rw-r--r--net/netfilter/Makefile1
-rw-r--r--net/netfilter/xt_ecn.c (renamed from net/ipv4/netfilter/ipt_ecn.c)1
5 files changed, 16 insertions, 6 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig
index 7e1f5cdaf11e..53b9c79c8025 100644
--- a/net/ipv4/netfilter/Kconfig
+++ b/net/ipv4/netfilter/Kconfig
@@ -76,11 +76,11 @@ config IP_NF_MATCH_AH
76config IP_NF_MATCH_ECN 76config IP_NF_MATCH_ECN
77 tristate '"ecn" match support' 77 tristate '"ecn" match support'
78 depends on NETFILTER_ADVANCED 78 depends on NETFILTER_ADVANCED
79 help 79 select NETFILTER_XT_MATCH_ECN
80 This option adds a `ECN' match, which allows you to match against 80 ---help---
81 the IPv4 and TCP header ECN fields. 81 This is a backwards-compat option for the user's convenience
82 82 (e.g. when running oldconfig). It selects
83 To compile it as a module, choose M here. If unsure, say N. 83 CONFIG_NETFILTER_XT_MATCH_ECN.
84 84
85config IP_NF_MATCH_RPFILTER 85config IP_NF_MATCH_RPFILTER
86 tristate '"rpfilter" reverse path filter match support' 86 tristate '"rpfilter" reverse path filter match support'
diff --git a/net/ipv4/netfilter/Makefile b/net/ipv4/netfilter/Makefile
index 123dd88cea53..213a462b739b 100644
--- a/net/ipv4/netfilter/Makefile
+++ b/net/ipv4/netfilter/Makefile
@@ -49,7 +49,6 @@ obj-$(CONFIG_IP_NF_SECURITY) += iptable_security.o
49 49
50# matches 50# matches
51obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o 51obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o
52obj-$(CONFIG_IP_NF_MATCH_ECN) += ipt_ecn.o
53obj-$(CONFIG_IP_NF_MATCH_RPFILTER) += ipt_rpfilter.o 52obj-$(CONFIG_IP_NF_MATCH_RPFILTER) += ipt_rpfilter.o
54 53
55# targets 54# targets
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index bac93ba60778..20388a97df66 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -778,6 +778,15 @@ config NETFILTER_XT_MATCH_DSCP
778 778
779 To compile it as a module, choose M here. If unsure, say N. 779 To compile it as a module, choose M here. If unsure, say N.
780 780
781config NETFILTER_XT_MATCH_ECN
782 tristate '"ecn" match support'
783 depends on NETFILTER_ADVANCED
784 ---help---
785 This option adds an "ECN" match, which allows you to match against
786 the IPv4 and TCP header ECN fields.
787
788 To compile it as a module, choose M here. If unsure, say N.
789
781config NETFILTER_XT_MATCH_ESP 790config NETFILTER_XT_MATCH_ESP
782 tristate '"esp" match support' 791 tristate '"esp" match support'
783 depends on NETFILTER_ADVANCED 792 depends on NETFILTER_ADVANCED
diff --git a/net/netfilter/Makefile b/net/netfilter/Makefile
index b2eee4df8168..40f4c3d636c5 100644
--- a/net/netfilter/Makefile
+++ b/net/netfilter/Makefile
@@ -81,6 +81,7 @@ obj-$(CONFIG_NETFILTER_XT_MATCH_CPU) += xt_cpu.o
81obj-$(CONFIG_NETFILTER_XT_MATCH_DCCP) += xt_dccp.o 81obj-$(CONFIG_NETFILTER_XT_MATCH_DCCP) += xt_dccp.o
82obj-$(CONFIG_NETFILTER_XT_MATCH_DEVGROUP) += xt_devgroup.o 82obj-$(CONFIG_NETFILTER_XT_MATCH_DEVGROUP) += xt_devgroup.o
83obj-$(CONFIG_NETFILTER_XT_MATCH_DSCP) += xt_dscp.o 83obj-$(CONFIG_NETFILTER_XT_MATCH_DSCP) += xt_dscp.o
84obj-$(CONFIG_NETFILTER_XT_MATCH_ECN) += xt_ecn.o
84obj-$(CONFIG_NETFILTER_XT_MATCH_ESP) += xt_esp.o 85obj-$(CONFIG_NETFILTER_XT_MATCH_ESP) += xt_esp.o
85obj-$(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT) += xt_hashlimit.o 86obj-$(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT) += xt_hashlimit.o
86obj-$(CONFIG_NETFILTER_XT_MATCH_HELPER) += xt_helper.o 87obj-$(CONFIG_NETFILTER_XT_MATCH_HELPER) += xt_helper.o
diff --git a/net/ipv4/netfilter/ipt_ecn.c b/net/netfilter/xt_ecn.c
index 2b57e52c746c..2c198f5e3efb 100644
--- a/net/ipv4/netfilter/ipt_ecn.c
+++ b/net/netfilter/xt_ecn.c
@@ -21,6 +21,7 @@
21MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>"); 21MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>");
22MODULE_DESCRIPTION("Xtables: Explicit Congestion Notification (ECN) flag match for IPv4"); 22MODULE_DESCRIPTION("Xtables: Explicit Congestion Notification (ECN) flag match for IPv4");
23MODULE_LICENSE("GPL"); 23MODULE_LICENSE("GPL");
24MODULE_ALIAS("ipt_ecn");
24 25
25static inline bool match_ip(const struct sk_buff *skb, 26static inline bool match_ip(const struct sk_buff *skb,
26 const struct ipt_ecn_info *einfo) 27 const struct ipt_ecn_info *einfo)