Skip to content

Fixes (and fallout) from running tests/monitor in JSON mode

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools: gitignore nftables.service filetools/.gitignore+1 -00 replies
2/5monitor: Quote device names in chain declarations, toosrc/rule.c+1 -10 replies
3/5mnl: Allow for updating devices on existing inet ingress hook chainssrc/evaluate.c src/mnl.c+6 -24 replies
4/5monitor: Inform JSON printer when reporting an object delete eventinclude/json.h src/json.c src/monitor.c +1 more+21 -142 replies
5/5tests: monitor: Extend testcases a bittests/monitor/testcases/chain.t tests/monitor/testcases/flowtable-simple.t tests/monitor/testcases/table.t+68 -01 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchPablo Neira Ayuso
1/5
2/5
3/5
4/5R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [nft PATCH 0/5] Fixes (and fallout) from running tests/monitor in JSON mode

The reported problem of object deletion notifications with bogus data is resolved in patch four. It seems only object notifications were affected. Patch 6 extends test suite coverage for tables and chains a bit.

Patch one is an unrelated trivial fix, patches two and three cover for oddities noticed while working on the actual problem.

Phil Sutter (5):
tools: gitignore nftables.service file
monitor: Quote device names in chain declarations, too
mnl: Allow for updating devices on existing inet ingress hook chains
monitor: Inform JSON printer when reporting an object delete event
tests: monitor: Extend testcases a bit

 include/json.h                             |  5 +--
 src/evaluate.c                             |  6 ++--
 src/json.c                                 | 18 ++++++----
 src/mnl.c                                  |  2 ++
 src/monitor.c                              |  2 +-
 src/rule.c                                 |  2 +-
 tests/monitor/testcases/chain.t            | 41 ++++++++++++++++++++++
 tests/monitor/testcases/flowtable-simple.t | 12 +++++++
 tests/monitor/testcases/object.t           | 10 +++---
 tests/monitor/testcases/table.t            | 15 ++++++++
 tools/.gitignore                           |  1 +
 11 files changed, 97 insertions(+), 17 deletions(-)
 create mode 100644 tests/monitor/testcases/chain.t
 create mode 100644 tests/monitor/testcases/table.t
 create mode 100644 tools/.gitignore
Signature · 1 line
2.51.0