From 65b150ae382a8b5d1fc7f2465b3ac590c1601ce1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 27 Sep 2021 16:59:49 +0200 Subject: 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 --- include/xtables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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))); -- cgit v1.2.3