diff options
author | Phil Sutter <phil@nwl.cc> | 2022-01-10 16:39:53 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-04-08 18:00:42 +0200 |
commit | 3f4f1cf075572045a910b5c4d625602b9ba3c349 (patch) | |
tree | 1e3b3ece49ec019e9ae8b079abc79e63c2a701e9 /include | |
parent | 070a8626f2c01971d88bcfbcce10c914d552c9a4 (diff) |
extensions: ipt_DNAT: Merge v1 and v2 parsers
Use v2 parser for both and copy field values into v1 data structure if
needed.
While being at it:
* Introduce parse_ports() function similar to the one in
libipt_REDIRECT.c.
* Use xtables_strtoui() in the above instead of atoi() for integrated
range checking.
* Parse IP addresses using inet_pton(), writing directly into
struct nf_nat_range2 fields.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions