]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-translate: Fix translation of odd netmasks
authorPhil Sutter <phil@nwl.cc>
Tue, 2 Mar 2021 13:50:07 +0000 (14:50 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 9 Mar 2021 08:27:33 +0000 (09:27 +0100)
commit46f9d3a9a61ee80fa94b7fa7b3b36045c92606ae
treef14a80399d455fe8a40812449decd394021c62de
parent330f5df03ad589b46865ceedf2a54cf10a4225ba
xtables-translate: Fix translation of odd netmasks

Iptables supports netmasks which are not prefixes to match on (or
ignore) arbitrary bits in an address. Yet nftables' prefix notation is
available for real prefixes only, so translation is not as trivial -
print bitmask syntax for those cases.

Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/generic.txlate
extensions/libxt_standard.t
iptables/nft-ipv4.c
iptables/nft-ipv6.c