diff options
author | Florian Westphal <fw@strlen.de> | 2019-08-13 22:12:45 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-08-14 11:48:03 +0200 |
commit | 015b752465518e072d60f53cf89f8cf4b107d639 (patch) | |
tree | 1206699f8653705eba8775eeddc8014533dd2a51 /files | |
parent | fb6d826afb1fa346bdf61c43cd6f7551caee27ba (diff) |
src: parser: fix parsing of chain priority and policy on bigendian
tests/shell/testcases/flowtable/0001flowtable_0
tests/shell/testcases/nft-f/0008split_tables_0
fail the 'dump compare' on s390x.
The priority (10) turns to 0, and accept turned to drop.
Problem is that '$1' is a 64bit value -- then we pass the address
and import 'int' -- we then get the upper all zero bits.
Add a 32bit interger type and use that.
v2: add uint32_t type to union, v1 used temporary value instead.
Fixes: 627c451b2351 ("src: allow variables in the chain priority specification")
Fixes: dba4a9b4b5fe ("src: allow variable in chain policy")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'files')
0 files changed, 0 insertions, 0 deletions