]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_nat: fix DNAT target for shifted portmap ranges
authorPaolo Abeni <pabeni@redhat.com>
Tue, 16 Oct 2018 14:52:05 +0000 (16:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 Oct 2018 17:34:49 +0000 (19:34 +0200)
commitee13fae74d5b55f389888c4b8478715b47fcf327
tree6bdba61d1af87712a44df86e48dc66a00862fac9
parente1284e61bd5bc064496bda9659b6872be6c2fcdc
netfilter: xt_nat: fix DNAT target for shifted portmap ranges

The commit f55d36e1bf35 ("netfilter: add NAT support for shifted
portmap ranges") did not set the checkentry/destroy callbacks for
the newly added DNAT target. As a result, rulesets using only
such nat targets are not effective, as the relevant conntrack hooks
are not enabled.
The above affect also nft_compat rulesets.
Fix the issue adding the missing initializers.

Fixes: f55d36e1bf35 ("netfilter: add NAT support for shifted portmap ranges")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_nat.c