summaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_connmark.c
diff options
context:
space:
mode:
authorPatrick McHardy2007-12-18 06:50:53 +0100
committerDavid S. Miller2008-01-28 23:58:37 +0100
commit34f4c4295eb2580ca67677dea14a2839aedc403f (patch)
tree3ab451715ce288e43fc2629b661830832d0872de /net/netfilter/xt_connmark.c
parent[NETFILTER]: ip6_tables: add compat support (diff)
downloadkernel-qcow2-linux-34f4c4295eb2580ca67677dea14a2839aedc403f.tar.gz
kernel-qcow2-linux-34f4c4295eb2580ca67677dea14a2839aedc403f.tar.xz
kernel-qcow2-linux-34f4c4295eb2580ca67677dea14a2839aedc403f.zip
[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/xt_connmark.c')
-rw-r--r--net/netfilter/xt_connmark.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netfilter/xt_connmark.c b/net/netfilter/xt_connmark.c
index 7e0874af3186..b5c0f2fe6997 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 = {
.match = connmark_mt,
.destroy = connmark_mt_destroy,
.matchsize = sizeof(struct xt_connmark_info),
+#ifdef CONFIG_COMPAT
+ .compatsize = sizeof(struct compat_xt_connmark_info),
+ .compat_from_user = connmark_mt_compat_from_user,
+ .compat_to_user = connmark_mt_compat_to_user,
+#endif
.me = THIS_MODULE
},
};