diff options
| author | Phil Sutter <phil@nwl.cc> | 2025-06-11 16:45:48 +0200 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2025-06-12 22:55:46 +0200 |
| commit | 9fa3fbed73a36111e308c9856514a032f5444564 (patch) | |
| tree | 4a4dc5a1c08df98438bc2ac07522726632263403 /tests/monitor | |
| parent | 18ddac660dfa19a4d18fa850b377802011a76393 (diff) | |
json: Dump flowtable hook spec only if present
If there is no priority.expr set, assume hook.num is bogus, too.
While this is fixing JSON output, it's hard to tell what commit this is
actually fixing: Before commit 627c451b23513 ("src: allow variables in
the chain priority specification"), there was no way to detect
flowtables missing hook specs (e.g. when printing flowtable delete
monitor event).
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/monitor')
| -rw-r--r-- | tests/monitor/testcases/flowtable-simple.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/flowtable-simple.t b/tests/monitor/testcases/flowtable-simple.t index df8eccbd..b373cca2 100644 --- a/tests/monitor/testcases/flowtable-simple.t +++ b/tests/monitor/testcases/flowtable-simple.t @@ -7,4 +7,4 @@ J {"add": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0 I delete flowtable ip t ft O - -J {"delete": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0, "hook": "ingress", "prio": 0, "dev": "lo"}}} +J {"delete": {"flowtable": {"family": "ip", "name": "ft", "table": "t", "handle": 0}}} |
