]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: implement ebtables-{save,restore}
authorPhil Sutter <phil@nwl.cc>
Thu, 19 Jul 2018 16:32:09 +0000 (18:32 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 19 Jul 2018 21:13:02 +0000 (23:13 +0200)
commit922508e9156327ccb8e35243781cf85f5787ee40
treeba9f497f248cb16216ae69972b694f162d602424
parent25ef90814a991e80384d4369565c6decadfcd409
xtables: implement ebtables-{save,restore}

The code for ebtables-restore was derived from legacy code,
ebtables-save is actually a new implementation using the existing
infrastructure and trying to adhere to legacy perl script output
formatting as much as possible.

This introduces a new format flag (FMT_EBT_SAVE) to allow
nft_bridge_save_rule() to distinguish between ruleset listing (i.e.,
ebtables -L) and saving via ebtables-save - the two differ in how
counters are being formatted. Odd, but that's how it is.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/xtables.h
iptables/Makefile.am
iptables/nft-bridge.c
iptables/nft.h
iptables/xtables-eb.c
iptables/xtables-multi.h
iptables/xtables-nft-multi.c
iptables/xtables-restore.c
iptables/xtables-save.c