summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
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/xshared.h
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/xshared.h')
-rw-r--r--iptables/xshared.h5
1 files changed, 5 insertions, 0 deletions
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 */