diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-30 00:11:14 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-04-08 18:00:42 +0200 |
commit | 7adef31421bc38c068e2e30720b61dc068c0d63f (patch) | |
tree | cc7cbdec5cd6a1dcc5c6e1bc3495663cb4e6babe /extensions/libxt_comment.t | |
parent | 3f4f1cf075572045a910b5c4d625602b9ba3c349 (diff) |
extensions: ipt_DNAT: Merge v1/v2 print/save code
Turn print_range() function into sprint_range() so it becomes more
versatile. Make it accept the new nf_nat_range2 data structure and
make v1 callers convert their nf_nat_ipv4_multi_range_compat structs
to that.
This allows to introduce an inner __DNAT_print() which acts for v1 and
v2 and prints either 'print' or 'save' syntax.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libxt_comment.t')
0 files changed, 0 insertions, 0 deletions