diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-17 21:50:53 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:58:37 -0800 |
commit | 34f4c4295eb2580ca67677dea14a2839aedc403f (patch) | |
tree | 3ab451715ce288e43fc2629b661830832d0872de /net/netfilter/xt_limit.c | |
parent | 3bc3fe5eed5e866c0871db6d745f3bf58af004ef (diff) | |
download | linux-stable-34f4c4295eb2580ca67677dea14a2839aedc403f.tar.gz linux-stable-34f4c4295eb2580ca67677dea14a2839aedc403f.tar.bz2 linux-stable-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_limit.c')
-rw-r--r-- | net/netfilter/xt_limit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netfilter/xt_limit.c b/net/netfilter/xt_limit.c index c9352dbf3a19..2ef0dbf6392b 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 = { .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, }, }; |