diff options
author | Phil Sutter <phil@nwl.cc> | 2019-09-17 18:43:21 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-18 11:57:24 +0200 |
commit | 4abb44c978d75656f69dd59f24522eb970881ccf (patch) | |
tree | 88a992be6606e03aeb378b79205d29316ca1eb7a /iptables/iptables-apply.8.in | |
parent | fe2c53d570bf7a301b0cb5aa25b1186a47378a6b (diff) |
xtables-restore: Introduce rule counter tokenizer function
The same piece of code appears three times, introduce a function to take
care of tokenizing and error reporting.
Pass buffer pointer via reference so it can be updated to point to after
the counters (if found).
While being at it, drop pointless casting when passing pcnt/bcnt to
add_argv().
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/iptables-apply.8.in')
0 files changed, 0 insertions, 0 deletions