From c0b7bdacbc15c1cf5eaeb9faefc088aa698e94ba Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 21 Mar 2022 15:56:01 +0100 Subject: Reworked nDPIsrvd.h C-API. * nDPIsrvd.h: Provide nDPId thread storage. * nDPIsrvd.py: Fixed instance cleanup bug. * nDPIsrvd.h: Support for instance/thread user data and cleanup callback. * nDPIsrvd.h: Most recent flow time stored in thread ht instead of instance ht. * nDPId: Moved flow logger out the memory profilier into SIGUSR1 signal handling. * nDPId: Added signal fd to be usable within epoll's event handling (live-capture only!) * nDPId: Added information about ZLib compressions to daemon status/shutdown events. Signed-off-by: Toni Uhlig --- schema/daemon_event_schema.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'schema/daemon_event_schema.json') diff --git a/schema/daemon_event_schema.json b/schema/daemon_event_schema.json index fa6a4bdd9..0727fa1fe 100644 --- a/schema/daemon_event_schema.json +++ b/schema/daemon_event_schema.json @@ -19,7 +19,7 @@ "properties": { "daemon_event_name": { "enum": [ "status", "shutdown" ] } } }, "then": { - "required": [ "packets-captured", "packets-processed", "total-skipped-flows", "total-l4-data-len", "total-not-detected-flows", "total-guessed-flows", "total-detected-flows", "total-detection-updates", "total-updates", "current-active-flows", "total-active-flows", "total-idle-flows", "total-events-serialized" ] + "required": [ "packets-captured", "packets-processed", "total-skipped-flows", "total-l4-data-len", "total-not-detected-flows", "total-guessed-flows", "total-detected-flows", "total-detection-updates", "total-updates", "current-active-flows", "total-active-flows", "total-idle-flows", "total-compressions", "total-compression-diff", "current-compression-diff", "total-events-serialized" ] }, "properties": { "alias": { @@ -135,6 +135,18 @@ "type": "number", "minimum": 0 }, + "total-compressions": { + "type": "number", + "minimum": 0 + }, + "total-compression-diff": { + "type": "number", + "minimum": 0 + }, + "current-compression-diff": { + "type": "number", + "minimum": 0 + }, "total-events-serialized": { "type": "number", "minimum": 1 -- cgit v1.2.3