diff options
author | Phil Sutter <phil@nwl.cc> | 2022-05-05 23:48:50 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-05-11 12:02:35 +0200 |
commit | fd64a5871b671a66f1ba6d6e3aa83ed24d92c099 (patch) | |
tree | 433b4f605c9108c6576aa9539fbab1efb3385f01 /iptables/xshared.h | |
parent | 3b8a6a6fa870c5ed4a2c533fcec9524bc98e5709 (diff) |
libxtables: Drop xtables_globals 'optstring' field
Define the different optstrings in xshared.h instead, they are not
relevant for other libxtables users.
This is a partial revert of commit 65b150ae382a8 ("xshared: Store
optstring in xtables_globals") to avoid breaking libxtables' ABI
compatibility.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r-- | iptables/xshared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index e69da735..14568bb0 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -68,6 +68,9 @@ struct xtables_rule_match; struct xtables_target; #define OPTSTRING_COMMON "-:A:C:D:E:F::I:L::M:N:P:VX::Z::" "c:d:i:j:o:p:s:t:" +#define IPT_OPTSTRING OPTSTRING_COMMON "R:S::W::" "46bfg:h::m:nvw::x" +#define ARPT_OPTSTRING OPTSTRING_COMMON "R:S::" "h::l:nv" /* "m:" */ +#define EBT_OPTSTRING OPTSTRING_COMMON "hv" /* define invflags which won't collide with IPT ones */ #define IPT_INV_SRCDEVADDR 0x0080 |