Skip to content

evaluate: add more checks for '... set 1-3'

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 0 repliesNew

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2evaluate: tproxy: move range error checks after arg evaluationsrc/evaluate.c tests/shell/testcases/bogons/nft-f/tproxy_ranges+14 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/2] evaluate: add more checks for '... set 1-3'

Only a few statements can accept expressions with ranges, all others will trigger an assertion in the netlink linearization path.

Add missing checks and fix the existing tproxy ones.

Florian Westphal (2):
evaluate: tproxy: move range error checks after arg evaluation
evaluate: add missing range checks for dup,fwd and payload statements

 src/evaluate.c                                | 100 ++++++++++--------
 .../testcases/bogons/nft-f/dup_fwd_ranges     |  14 +++
 .../testcases/bogons/nft-f/tproxy_ranges      |   8 ++
 .../nft-f/unknown_expr_type_range_assert      |   8 +-
 4 files changed, 83 insertions(+), 47 deletions(-)
 create mode 100644 tests/shell/testcases/bogons/nft-f/dup_fwd_ranges
 create mode 100644 tests/shell/testcases/bogons/nft-f/tproxy_ranges
Signature · 1 line
2.41.0