]> git.baikalelectronics.ru Git - kernel.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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 3 Apr 2013 10:24:56 +0000 (12:24 +0200)
commit0a11431a98a07550fb423bbdb1564b42f5778a0f
treef222e6dc6a92465710e75f57c96e1bf4bb858250
parentb6c4bb1dfc16a51fd4d65a6ffef186115b20517b
netfilter: ip6t_NPT: Fix translation for non-multiple of 32 prefix lengths

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>
net/ipv6/netfilter/ip6t_NPT.c