netfilter: nft_compat: ebtables 'nat' table is normal chain type
authorFlorian Westphal <fw@strlen.de>
Fri, 2 Nov 2018 10:33:37 +0000 (11:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:13:03 +0000 (16:13 +0100)
commit1cf11e7ca034919f242a855b1a52c018b3cba911
treead8c7f55bfde7e7f647a886968180127f42d8c8f
parent2f6bf7917f55f9dae913193e49672b3598620eab
netfilter: nft_compat: ebtables 'nat' table is normal chain type

[ Upstream commit e4844c9c62a0fe47980d6c3d4b7a096a5d755925 ]

Unlike ip(6)tables, the ebtables nat table has no special properties.
This bug causes 'ebtables -A' to fail when using a target such as
'snat' (ebt_snat target sets ".table = "nat"').  Targets that have
no table restrictions work fine.

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>
net/netfilter/nft_compat.c