]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: ipt_DNAT: Combine xlate functions also
authorPhil Sutter <phil@nwl.cc>
Tue, 29 Mar 2022 22:17:09 +0000 (00:17 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 8 Apr 2022 16:00:42 +0000 (18:00 +0200)
commit2e0c9a406d07fcff42b2e4345bf52600479989d6
treeec10ece717e287c1666a75829088e27629e7ce6e
parent7adef31421bc38c068e2e30720b61dc068c0d63f
extensions: ipt_DNAT: Combine xlate functions also

Make use of the new sprint_range() to introduce a common inner function
for both v1 and v2 xlate functions.

Also abort translation with shifted port ranges to not hide the missing
feature in nftables.

Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libipt_DNAT.c