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/nft-shared.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 195e5fed..c3241f4b 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -174,10 +174,6 @@ void nft_ipv46_parse_target(struct xtables_target *t, void *data); bool compare_matches(struct xtables_rule_match *mt1, struct xtables_rule_match *mt2); bool compare_targets(struct xtables_target *tg1, struct xtables_target *tg2); -void do_parse(int argc, char *argv[], - struct xt_cmd_parse *p, struct iptables_command_state *cs, - struct xtables_args *args); - struct nftnl_chain_list; struct nft_xt_restore_cb { -- cgit v1.2.3