]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: ip6t_NPT: Fix translation for non-multiple of 32 prefix lengths
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 30 Mar 2013 10:23:12 +0000 (10:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 20:53:56 +0000 (13:53 -0700)
commit6be0e000f32e975c79852d2d990a09cad41fc605
tree881b88d416efdebc0ba230cd5939095a4b591f4e
parent6fc08dc6f89960aaf27149f8031009fdc8062a70
netfilter: ip6t_NPT: Fix translation for non-multiple of 32 prefix lengths

commit 906b1c394d0906a154fbdc904ca506bceb515756 upstream.

The bitmask used for the prefix mangling was being calculated
incorrectly, leading to the wrong part of the address being replaced
when the prefix length wasn't a multiple of 32.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/netfilter/ip6t_NPT.c