]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables-restore: Table line to trigger implicit commit
authorPhil Sutter <phil@nwl.cc>
Tue, 7 Apr 2020 19:17:21 +0000 (21:17 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 12:28:28 +0000 (14:28 +0200)
commit70a3c1a07585de64b5780a415dc157079c34911b
treed47809e85a9c8b779e7038c84d35eaeada7e866a
parentaccaecdf5889911e6a1ca4737c6f6599a77afe24
ebtables-restore: Table line to trigger implicit commit

Cache code is suited for holding multiple tables' data at once. The only
users of that are xtables-save and ebtables-restore with its support for
multiple tables and lack of explicit COMMIT lines.

Remove the second user by introducing implicit commits upon table line
parsing. This would allow to make cache single table only, but then
xtables-save would fetch cache multiple times (once for each table) and
therefore lose atomicity with regards to the acquired kernel ruleset
image.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xtables-restore.c