summaryrefslogtreecommitdiffstats
path: root/include/xtables.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-09-27 16:59:49 +0200
committerPhil Sutter <phil@nwl.cc>2021-10-20 11:32:54 +0200
commit65b150ae382a8b5d1fc7f2465b3ac590c1601ce1 (patch)
treec319b280cff3f8fca00539cd9e7fbb54e21e4be6 /include/xtables.h
parent2e6014c739852daf8c0c42caeef01d3966622c4b (diff)
xshared: Store optstring in xtables_globals
Preparing for a common option parser, store the string of options for each family inside the respective xtables_globals object. The array of long option definitions sitting in there already indicates it's the right place. While being at it, drop '-m' support from arptables-nft. Signed-off-by: Phil Sutter <phil@nwl.cc>
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 e51f4bfd..c872a042 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -420,6 +420,7 @@ struct xtables_globals
{
unsigned int option_offset;
const char *program_name, *program_version;
+ const char *optstring;
struct option *orig_opts;
struct option *opts;
void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3)));