Skip to content

Commit

Permalink
[NETFILTER]: xt_MARK: support revision 1 for IPv6
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 34f4c42 commit 311af5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions net/netfilter/xt_MARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 311af5c

Please sign in to comment.