summaryrefslogtreecommitdiffstats
path: root/include/xtables.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:32:09 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 23:13:02 +0200
commit922508e9156327ccb8e35243781cf85f5787ee40 (patch)
treeba9f497f248cb16216ae69972b694f162d602424 /include/xtables.h
parent25ef90814a991e80384d4369565c6decadfcd409 (diff)
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>
Diffstat (limited to 'include/xtables.h')
-rw-r--r--include/xtables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h
index 743906bf..e4d23502 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -536,6 +536,7 @@ extern void xtables_save_string(const char *value);
#define FMT_VIA 0x0040
#define FMT_NONEWLINE 0x0080
#define FMT_LINENUMBERS 0x0100
+#define FMT_EBT_SAVE 0x0200
#define FMT_PRINT_RULE (FMT_NOCOUNTS | FMT_OPTIONS | FMT_VIA \
| FMT_NUMERIC | FMT_NOTABLE)