diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2017-03-16 16:55:01 +0900 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-17 14:20:46 +0100 |
commit | 6e2e169eb66b63d2991e1c7ada931e3cdb0ced32 (patch) | |
tree | 2d30c42e08c94f7681a88d316fdbba9a1ed24dbc /extensions/libip6t_mh.t | |
parent | 836846f0d747e1be8e37d2d43b215a68b30ea1a9 (diff) |
iptables: remove duplicated argument parsing code
1. Factor out repeated code to a new xs_has_arg function.
2. Add a new parse_wait_time option to parse the value of -w.
3. Make parse_wait_interval take argc and argv so its callers
can be simpler.
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_mh.t')
0 files changed, 0 insertions, 0 deletions