path: root/iptables/xshared.h
diff options
authorPhil Sutter <>2018-08-02 17:05:16 +0200
committerFlorian Westphal <>2018-08-04 14:26:46 +0200
commit1cc09188079a64dc8b733f198c959cfb441e6e20 (patch)
tree4de4832ed055c237569b22491e13e728d3a463dc /iptables/xshared.h
parent78b9d438037f2c83a7bbb73eb1b86cc295967905 (diff)
xshared: Consolidate parse_counters()
Move this helper function into xshared. While being at it, drop the need for temporary variables and take over null pointer tolerance from the implementation in iptables-xml.c. Signed-off-by: Phil Sutter <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'iptables/xshared.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 363549db..55249341 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -150,6 +150,7 @@ extern int xtables_lock_or_exit(int wait, struct timeval *tv);
int parse_wait_time(int argc, char *argv[]);
void parse_wait_interval(int argc, char *argv[], struct timeval *wait_interval);
+int parse_counters(const char *string, struct xt_counters *ctr);
bool xs_has_arg(int argc, char *argv[]);
extern const struct xtables_afinfo *afinfo;