]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-restore: Improve user-defined chain detection
authorPhil Sutter <phil@nwl.cc>
Mon, 6 Aug 2018 15:21:53 +0000 (17:21 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 6 Aug 2018 16:17:39 +0000 (18:17 +0200)
commit1679b2cb2cae2bb3ce8eff5444ba858a51310d4c
tree9097c7bd5db202d9418d2c99f7dd156a2d11b7b3
parent2ce9f65a374bad212899bc584d3e5f4698df6fc6
xtables-restore: Improve user-defined chain detection

Legacy ebtables-save does not use a policy string of '-' to denote
user-defined chains but instead lists them with a policy of ACCEPT.

In order to use ebtables_restore_parse() for ebtables-save
implementation, make use of builtin table definitions to decide whether
a given chain is a builtin one or not.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft.c
iptables/nft.h
iptables/xtables-restore.c