diff options
| author | Florian Westphal <[email protected]> | 2022-06-01 08:47:35 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2022-06-01 13:53:39 +0000 |
| commit | 282e5f8fe907dc3f2fbf9f2103b0e62ffc3a68a5 (patch) | |
| tree | 0e6da4b3bca173baae61c9d66ea8afc9fce8594f /net/switchdev/switchdev.c | |
| parent | tcp: tcp_rtx_synack() can be called from process context (diff) | |
| download | kernel-282e5f8fe907dc3f2fbf9f2103b0e62ffc3a68a5.tar.gz kernel-282e5f8fe907dc3f2fbf9f2103b0e62ffc3a68a5.zip | |
netfilter: nat: really support inet nat without l3 address
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: a33f387ecd5aa ("netfilter: nft_nat: allow to specify layer 4 protocol NAT only")
Reported-by: Yi Chen <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
