]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix listing of range set elements in host byteorder
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 7 Dec 2014 23:25:13 +0000 (00:25 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Dec 2014 18:12:20 +0000 (19:12 +0100)
commitf874c2935bb790be378d7916ee426baa1a228603
tree642770c727a01af5922c11712dffea5e28ba2bb5
parent87ed152ebf561f20a2b5e23f2cf91e56a8d01838
netlink: fix listing of range set elements in host byteorder

We have to switch the byteorder of the element in
netlink_delinearize_setelem() for non-range values only.

This fixes the listing of:

  nft add rule filter input ct mark { 0x10-0x20 } counter

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c