aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-18 00:50:53 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:37 -0500
commit34f4c4295eb2580ca67677dea14a2839aedc403f (patch)
tree3ab451715ce288e43fc2629b661830832d0872de /net/netfilter
parent3bc3fe5eed5e866c0871db6d745f3bf58af004ef (diff)
[NETFILTER]: x_tables: enable compat translation for IPv6 matches/targets
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/xt_CONNMARK.c5
-rw-r--r--net/netfilter/xt_connmark.c5
-rw-r--r--net/netfilter/xt_limit.c5
-rw-r--r--net/netfilter/xt_mark.c5
4 files changed, 20 insertions, 0 deletions
diff --git a/net/netfilter/xt_CONNMARK.c b/net/netfilter/xt_CONNMARK.c
index 0250bbea4c8..d96ee3e0ba2 100644
--- a/net/netfilter/xt_CONNMARK.c
+++ b/net/netfilter/xt_CONNMARK.c
@@ -160,6 +160,11 @@ static struct xt_target connmark_tg_reg[] __read_mostly = {
160 .destroy = connmark_tg_destroy, 160 .destroy = connmark_tg_destroy,
161 .target = connmark_tg, 161 .target = connmark_tg,
162 .targetsize = sizeof(struct xt_connmark_target_info), 162 .targetsize = sizeof(struct xt_connmark_target_info),
163#ifdef CONFIG_COMPAT
164 .compatsize = sizeof(struct compat_xt_connmark_target_info),
165 .compat_from_user = connmark_tg_compat_from_user,
166 .compat_to_user = connmark_tg_compat_to_user,
167#endif
163 .me = THIS_MODULE 168 .me = THIS_MODULE
164 }, 169 },
165}; 170};
diff --git a/net/netfilter/xt_connmark.c b/net/netfilter/xt_connmark.c
index 7e0874af318..b5c0f2fe699 100644
--- a/net/netfilter/xt_connmark.c
+++ b/net/netfilter/xt_connmark.c
@@ -126,6 +126,11 @@ static struct xt_match connmark_mt_reg[] __read_mostly = {
126 .match = connmark_mt, 126 .match = connmark_mt,
127 .destroy = connmark_mt_destroy, 127 .destroy = connmark_mt_destroy,
128 .matchsize = sizeof(struct xt_connmark_info), 128 .matchsize = sizeof(struct xt_connmark_info),
129#ifdef CONFIG_COMPAT
130 .compatsize = sizeof(struct compat_xt_connmark_info),
131 .compat_from_user = connmark_mt_compat_from_user,
132 .compat_to_user = connmark_mt_compat_to_user,
133#endif
129 .me = THIS_MODULE 134 .me = THIS_MODULE
130 }, 135 },
131}; 136};
diff --git a/net/netfilter/xt_limit.c b/net/netfilter/xt_limit.c
index c9352dbf3a1..2ef0dbf6392 100644
--- a/net/netfilter/xt_limit.c
+++ b/net/netfilter/xt_limit.c
@@ -187,6 +187,11 @@ static struct xt_match limit_mt_reg[] __read_mostly = {
187 .checkentry = limit_mt_check, 187 .checkentry = limit_mt_check,
188 .match = limit_mt, 188 .match = limit_mt,
189 .matchsize = sizeof(struct xt_rateinfo), 189 .matchsize = sizeof(struct xt_rateinfo),
190#ifdef CONFIG_COMPAT
191 .compatsize = sizeof(struct compat_xt_rateinfo),
192 .compat_from_user = limit_mt_compat_from_user,
193 .compat_to_user = limit_mt_compat_to_user,
194#endif
190 .me = THIS_MODULE, 195 .me = THIS_MODULE,
191 }, 196 },
192}; 197};
diff --git a/net/netfilter/xt_mark.c b/net/netfilter/xt_mark.c
index 650cdea97e7..ce8735e9762 100644
--- a/net/netfilter/xt_mark.c
+++ b/net/netfilter/xt_mark.c
@@ -94,6 +94,11 @@ static struct xt_match mark_mt_reg[] __read_mostly = {
94 .checkentry = mark_mt_check, 94 .checkentry = mark_mt_check,
95 .match = mark_mt, 95 .match = mark_mt,
96 .matchsize = sizeof(struct xt_mark_info), 96 .matchsize = sizeof(struct xt_mark_info),
97#ifdef CONFIG_COMPAT
98 .compatsize = sizeof(struct compat_xt_mark_info),
99 .compat_from_user = mark_mt_compat_from_user,
100 .compat_to_user = mark_mt_compat_to_user,
101#endif
97 .me = THIS_MODULE, 102 .me = THIS_MODULE,
98 }, 103 },
99}; 104};