summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-translate.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-12-23 19:03:37 +0100
committerPhil Sutter <phil@nwl.cc>2022-01-12 14:08:54 +0100
commit62c3c93d4b0f5f6b9bb6c6829d507b57b976a644 (patch)
treebf02227c4b05acfcbe49695633d87fb319f72628 /iptables/xtables-translate.c
parent3039a52c3ecf96df4e3b815d242f788c189093e1 (diff)
xshared: Move do_parse to shared space
Small adjustments were needed: - Pass line variable via xt_cmd_parse, xshared.c does not have it in namespace. - Replace opts, prog_name and prog_vers defines by the respective xt_params field reference. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-translate.c')
-rw-r--r--iptables/xtables-translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c
index c287d3bd..6a1cdac1 100644
--- a/iptables/xtables-translate.c
+++ b/iptables/xtables-translate.c
@@ -251,6 +251,7 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[],
struct xt_cmd_parse p = {
.table = *table,
.restore = restore,
+ .line = line,
.xlate = true,
.ops = &h->ops->cmd_parse,
};