summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-11-19 13:18:26 +0100
committerPhil Sutter <phil@nwl.cc>2023-11-23 17:59:42 +0100
commitb180d9c86d2cce6ab6fd3e3617faf320a8a1babb (patch)
tree6f39610d8848e41571fd7470e487e02200b92a6b /iptables
parenta26212542c27fee2f5fcabd22abaf03e74d1c7fc (diff)
xshared: struct xt_cmd_parse::xlate is unused
Drop the boolean, it was meant to disable some existence checks in do_parse() prior to the caching rework. Now that do_parse() runs before any caching is done, the checks in question don't exist anymore so drop this relict. Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/xshared.h1
-rw-r--r--iptables/xtables-translate.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 55863854..c77556a1 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -284,7 +284,6 @@ struct xt_cmd_parse {
bool restore;
int line;
int verbose;
- bool xlate;
struct xt_cmd_parse_ops *ops;
};
diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c
index ea9dce20..ad443112 100644
--- a/iptables/xtables-translate.c
+++ b/iptables/xtables-translate.c
@@ -259,7 +259,6 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[],
.table = *table,
.restore = restore,
.line = line,
- .xlate = true,
.ops = &h->ops->cmd_parse,
};
struct iptables_command_state cs = {