]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-restore: Introduce struct nft_xt_restore_state
authorPhil Sutter <phil@nwl.cc>
Fri, 18 Oct 2019 17:02:29 +0000 (19:02 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 6 Nov 2019 12:41:48 +0000 (13:41 +0100)
commit73a9a032404e2020e2b954781ce5fc8a57d5bb9f
tree07c4c4893cb8de7d47eeb931e6bb641019a685bf
parent3c0e4590ffbca3b0153eaff3338b331de2fe737c
xtables-restore: Introduce struct nft_xt_restore_state

This data structure holds parser state information. A follow-up patch
will extract line parsing code into a separate function which will need
a place to persistently store this info in between calls.

While being at it, make 'in_table' variable boolean and drop some extra
braces in conditionals checking its value.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xtables-restore.c