diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-03-23 12:52:39 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-03-28 10:26:34 +0200 |
commit | 3c64ea7995cbbc4f1d9d7707f907667325eb62b9 (patch) | |
tree | 3aa5d47e697ac56eef78f980bccd20618c638e9c /src/parser_json.c | |
parent | 1cdd8249f1c9c462b40ccde8d56191ea481ce610 (diff) |
evaluate: honor statement length in integer evaluation
Otherwise, bogus error is reported:
# nft --debug=netlink add rule ip x y 'ct mark set ip dscp & 0x0f << 1 | 0xff000000'
Error: Value 4278190080 exceeds valid range 0-63
add rule ip x y ct mark set ip dscp & 0x0f << 1 | 0xff000000
^^^^^^^^^^
Use the statement length as the maximum value in the mark statement
expression.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_json.c')
0 files changed, 0 insertions, 0 deletions