summaryrefslogtreecommitdiffstats
path: root/tests/py/any
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-01-08 01:44:39 +0100
committerFlorian Westphal <fw@strlen.de>2016-01-08 01:44:39 +0100
commite7a1e66ec8e2a9a5b1d6a00aa6d2144ce29222e0 (patch)
tree9194bdd38e85ecc475c9de2570fdc0e787da8e88 /tests/py/any
parent0bfbe6146418d93b2523ea56b43213cac5d6620c (diff)
netlink_linearize: use u64 conversion for 64bit quantities
nft generated two 4-byte swaps for conntrack byte/packet counters, which are 64bit host-endian values: byteorder reg 1 = hton(reg 1, 4, 8) ] This makes the kernel perform two htonl() calls, but we need a cpu_to_be64 conversion instead (reg 1, 8, 8). Without this a rule like 'ct original packets > 10' matched when counter was between 1 and 10. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any')
0 files changed, 0 insertions, 0 deletions