netfilter: nft_nat: allow to specify layer 4 protocol NAT only
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 20 Jul 2021 16:22:50 +0000 (18:22 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Jul 2021 12:18:03 +0000 (14:18 +0200)
commita33f387ecd5aafae514095c2c4a8c24f7aea7e8b
tree5386a3a627ccd1d4cef245c2c577c8fc2149150c
parent30a56a2b881821625f79837d4d968c679852444e
netfilter: nft_nat: allow to specify layer 4 protocol NAT only

nft_nat reports a bogus EAFNOSUPPORT if no layer 3 information is specified.

Fixes: d07db9884a5f ("netfilter: nf_tables: introduce nft_validate_register_load()")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_nat.c