summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_TPROXY.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-01-10 16:39:53 +0100
committerPhil Sutter <phil@nwl.cc>2022-04-08 18:00:42 +0200
commit3f4f1cf075572045a910b5c4d625602b9ba3c349 (patch)
tree1e3b3ece49ec019e9ae8b079abc79e63c2a701e9 /extensions/libxt_TPROXY.c
parent070a8626f2c01971d88bcfbcce10c914d552c9a4 (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 'extensions/libxt_TPROXY.c')
0 files changed, 0 insertions, 0 deletions