]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables: extensions: libxt_MARK: Fix translation of --set-xmark option
authorRoberto García <rodanber@gmail.com>
Wed, 22 Jun 2016 12:31:31 +0000 (14:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Jun 2016 17:58:51 +0000 (19:58 +0200)
commit97842738468fca3653bb41ee7fee77032dfce9a9
treec7403c5b647041881a26391737a449eb0e790191
parent33977ccf94b5146a293dc7e0fa58657910d15ef3
iptables: extensions: libxt_MARK: Fix translation of --set-xmark option

Fix translation of MARK target's --set-xmark option.

Before:
  #iptables-translate -t mangle -A PREROUTING -j MARK --set-xmark 0x64/0xaf
  nft add rule ip mangle PREROUTING counter meta mark set mark xor 0x64 and 0xaf

After:

  # iptables-translate -t mangle -A PREROUTING -j MARK --set-xmark 0x64/0xaf
  nft add rule ip mangle PREROUTING counter meta mark set mark and 0xffffff50 \
  xor 0x64

Signed-off-by: Roberto García <rodanber@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_MARK.c