Merge: netfilter: nat: really support inet nat without l3 address
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/991 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2092430 Upstream Status: net.git commit 282e5f8f commit 282e5f8f Author: Florian Westphal <fw@strlen.de> Date: Wed Jun 1 10:47:35 2022 +0200 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: a33f387e ("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:
Phil Sutter <psutter@redhat.com> Approved-by:
Jarod Wilson <jarod@redhat.com> Approved-by:
Xin Long <lxin@redhat.com> Approved-by:
Florian Westphal <fwestpha@redhat.com> Signed-off-by:
Patrick Talbert <ptalbert@redhat.com>
Please register or sign in to comment