diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-06 17:21:55 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-06 18:17:39 +0200 |
commit | 3f123dcf556487e753b43d7e43ff7016013349dc (patch) | |
tree | b60daded519b7da28b5b8f61477b878c8a12be6d /iptables/xtables-eb.c | |
parent | 295d5a809c67987db4d0961778d9800ba00926be (diff) |
ebtables-restore: Use xtables_restore_parse()
This drops the dedicated input parser (which was broken in many ways
anyway) and replaces it by the common one now that all required knobs
are in place.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 763d1ad9..c5c98c33 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -764,7 +764,8 @@ int nft_init_eb(struct nft_handle *h, const char *pname) return 0; } -int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table) +int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table, + bool restore) { char *buffer; int c, i; @@ -811,6 +812,7 @@ int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table) } /* prevent getopt to spoil our error reporting */ + optind = 0; opterr = false; cs.eb.bitmask = EBT_NOPROTO; |