From 62c3c93d4b0f5f6b9bb6c6829d507b57b976a644 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 23 Dec 2021 19:03:37 +0100 Subject: 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 --- iptables/xshared.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iptables/xshared.h') diff --git a/iptables/xshared.h b/iptables/xshared.h index 34730be6..13ea05fe 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -311,9 +311,14 @@ struct xt_cmd_parse { const char *newname; const char *policy; bool restore; + int line; int verbose; bool xlate; struct xt_cmd_parse_ops *ops; }; +void do_parse(int argc, char *argv[], + struct xt_cmd_parse *p, struct iptables_command_state *cs, + struct xtables_args *args); + #endif /* IPTABLES_XSHARED_H */ -- cgit v1.2.3