]> git.ipfire.org Git - thirdparty/nftables.git/commit
monitor: Inform JSON printer when reporting an object delete event
authorPhil Sutter <phil@nwl.cc>
Thu, 28 Aug 2025 23:07:05 +0000 (01:07 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 11 Sep 2025 16:03:02 +0000 (18:03 +0200)
commit6c04d24d16f1d15f216f2b3c8e64c9062cd77487
tree477c14c3523da0504db224655029bd0814f787c9
parent2214a4836bc7c906dd1d16a21a59b9d9240af7b7
monitor: Inform JSON printer when reporting an object delete event

Since kernel commit a1050dd07168 ("netfilter: nf_tables: Reintroduce
shortened deletion notifications"), type-specific data is no longer
dumped when notifying for a deleted object. JSON output was not aware of
this and tried to print bogus data.

Fixes: 9e88aae28e9f4 ("monitor: Use libnftables JSON output")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/json.h
src/json.c
src/monitor.c
tests/monitor/testcases/object.t