path: root/iptables/xshared.h
diff options
authorPhil Sutter <>2020-11-11 17:16:40 +0100
committerPhil Sutter <>2021-05-17 15:06:48 +0200
commit3664249f520308e8d9ce6238374f08ac96aedbb6 (patch)
treee71eed5f4bbf2e73c00b9045a45c22c6499c34f2 /iptables/xshared.h
parentf647f61f273a15ed25307d7ca7a19cefc828c54c (diff)
xshared: Eliminate iptables_command_state->invert
This field is not used by routines working with struct iptables_command_state: It is merely a temporary flag used by parsers to carry the '!' prefix until invflags have been populated (or error checking done if unsupported). Signed-off-by: Phil Sutter <>
Diffstat (limited to 'iptables/xshared.h')
1 files changed, 2 insertions, 3 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 1e86aba8..af2a5adb 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -125,7 +125,6 @@ struct iptables_command_state {
struct ip6t_entry fw6;
struct arpt_entry arp;
- int invert;
int c;
unsigned int options;
struct xtables_rule_match *matches;
@@ -154,7 +153,7 @@ extern void print_extension_helps(const struct xtables_target *,
const struct xtables_rule_match *);
extern const char *proto_to_name(uint8_t, int);
extern int command_default(struct iptables_command_state *,
- struct xtables_globals *);
+ struct xtables_globals *, bool invert);
extern struct xtables_match *load_proto(struct iptables_command_state *);
extern int subcmd_main(int, char **, const struct subcommand *);
extern void xs_init_target(struct xtables_target *);
@@ -215,7 +214,7 @@ void print_ipv6_addresses(const struct ip6t_entry *fw6, unsigned int format);
void print_ifaces(const char *iniface, const char *outiface, uint8_t invflags,
unsigned int format);
-void command_match(struct iptables_command_state *cs);
+void command_match(struct iptables_command_state *cs, bool invert);
const char *xt_parse_target(const char *targetname);
void command_jump(struct iptables_command_state *cs, const char *jumpto);