]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: xt_MARK: support revision 1 for IPv6
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 05:51:14 +0000 (21:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:37 +0000 (14:58 -0800)
The current netfilter SVN version includes support for this, so enable
it in the kernel as well.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_MARK.c

index de32aa5b57fc0ce71311cc3bf99b283a9de7db92..5bf912120f4805257184b59c1baf68ebc6279b3b 100644 (file)
@@ -158,6 +158,21 @@ static struct xt_target mark_tg_reg[] __read_mostly = {
                .table          = "mangle",
                .me             = THIS_MODULE,
        },
+       {
+               .name           = "MARK",
+               .family         = AF_INET6,
+               .revision       = 1,
+               .checkentry     = mark_tg_check,
+               .target         = mark_tg,
+               .targetsize     = sizeof(struct xt_mark_target_info_v1),
+#ifdef CONFIG_COMPAT
+               .compatsize     = sizeof(struct compat_xt_mark_target_info_v1),
+               .compat_from_user = mark_tg_compat_from_user,
+               .compat_to_user = mark_tg_compat_to_user,
+#endif
+               .table          = "mangle",
+               .me             = THIS_MODULE,
+       },
 };
 
 static int __init mark_tg_init(void)