summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-11-15 13:09:27 +0100
committerPhil Sutter <phil@nwl.cc>2023-12-05 16:35:37 +0100
commitd5605f44cdc0354ccbbc3cc46346823865c8a5fe (patch)
tree6a8bf72d29410e9f4b5efb60bf6ac89a189c0d26 /iptables/xshared.h
parent6e870112174289840867605a245ea07d5f704e44 (diff)
xshared: Support rule range deletion in do_parse()
This is a distinct ebtables feature. Introduce struct xt_cmd_parse::rule_ranges boolean indicating support for it and bail otherwise if a range was specified by the user. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 69f50e50..2fd15c72 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -280,6 +280,7 @@ struct xt_cmd_parse_ops {
struct xt_cmd_parse {
unsigned int command;
unsigned int rulenum;
+ unsigned int rulenum_end;
char *table;
const char *chain;
const char *newname;
@@ -287,6 +288,7 @@ struct xt_cmd_parse {
bool restore;
int line;
int verbose;
+ bool rule_ranges;
struct xt_cmd_parse_ops *ops;
};