linux-stable/tools/testing
Florian Westphal c7e5999146 netfilter: nat: really support inet nat without l3 address
[ Upstream commit 282e5f8fe9 ]

When no l3 address is given, priv->family is set to NFPROTO_INET and
the evaluation function isn't called.

Call it too so l4-only rewrite can work.
Also add a test case for this.

Fixes: a33f387ecd ("netfilter: nft_nat: allow to specify layer 4 protocol NAT only")
Reported-by: Yi Chen <yiche@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:41:29 +02:00
..
cxl cxl/core/port: Rename bus.c to port.c 2022-04-08 13:58:07 +02:00
fault-injection
ktest
kunit kunit: tool: make parser stop overwriting status of suites w/ no_tests 2022-06-09 10:25:28 +02:00
nvdimm memremap: remove support for external pgmap refcounts 2021-12-04 12:46:09 -08:00
radix-tree tools: Fix math.h breakage 2021-11-30 09:14:42 -08:00
scatterlist tools/testing/scatterlist: add missing defines 2022-01-30 09:56:58 +02:00
selftests netfilter: nat: really support inet nat without l3 address 2022-06-14 18:41:29 +02:00
vsock