netfilter: nft_nat: return EOPNOTSUPP if type or flags are not supported
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Apr 2020 19:55:34 +0000 (21:55 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Apr 2020 22:53:45 +0000 (00:53 +0200)
commit0d7c83463fdf7841350f37960a7abadd3e650b41
tree9ddb0aead9e9f100551d9b4ff6dc2e23a28e2701
parentfdb9c405e35bdc6e305b9b4e20ebc141ed14fc81
netfilter: nft_nat: return EOPNOTSUPP if type or flags are not supported

Instead of EINVAL which should be used for malformed netlink messages.

Fixes: eb31628e37a0 ("netfilter: nf_tables: Add support for IPv6 NAT")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_nat.c