]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: x_tables: enable compat translation for IPv6 matches/targets
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 05:50:53 +0000 (21:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:37 +0000 (14:58 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_CONNMARK.c
net/netfilter/xt_connmark.c
net/netfilter/xt_limit.c
net/netfilter/xt_mark.c

index 0250bbea4c856c94f92a17550d5d337e7bcdd7f3..d96ee3e0ba22e63eba2d247a0a4288105e77a6f0 100644 (file)
@@ -160,6 +160,11 @@ static struct xt_target connmark_tg_reg[] __read_mostly = {
                .destroy        = connmark_tg_destroy,
                .target         = connmark_tg,
                .targetsize     = sizeof(struct xt_connmark_target_info),
+#ifdef CONFIG_COMPAT
+               .compatsize     = sizeof(struct compat_xt_connmark_target_info),
+               .compat_from_user = connmark_tg_compat_from_user,
+               .compat_to_user = connmark_tg_compat_to_user,
+#endif
                .me             = THIS_MODULE
        },
 };
index 7e0874af31862793183680f86c884ceb5a06cf00..b5c0f2fe6997bc15df0ed5c0be0c30f74062e66a 100644 (file)
@@ -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
        },
 };
index c9352dbf3a1959b018be86f61e2fc6b49042782a..2ef0dbf6392b40e29b9a8595438c823f9cd9add2 100644 (file)
@@ -187,6 +187,11 @@ static struct xt_match limit_mt_reg[] __read_mostly = {
                .checkentry     = limit_mt_check,
                .match          = limit_mt,
                .matchsize      = sizeof(struct xt_rateinfo),
+#ifdef CONFIG_COMPAT
+               .compatsize     = sizeof(struct compat_xt_rateinfo),
+               .compat_from_user = limit_mt_compat_from_user,
+               .compat_to_user = limit_mt_compat_to_user,
+#endif
                .me             = THIS_MODULE,
        },
 };
index 650cdea97e729672f97bed0741672b2e1e49cead..ce8735e9762779d51575826f4bc32e513459b639 100644 (file)
@@ -94,6 +94,11 @@ static struct xt_match mark_mt_reg[] __read_mostly = {
                .checkentry     = mark_mt_check,
                .match          = mark_mt,
                .matchsize      = sizeof(struct xt_mark_info),
+#ifdef CONFIG_COMPAT
+               .compatsize     = sizeof(struct compat_xt_mark_info),
+               .compat_from_user = mark_mt_compat_from_user,
+               .compat_to_user = mark_mt_compat_to_user,
+#endif
                .me             = THIS_MODULE,
        },
 };