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 --- utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index e75883978..ddbcddef5 100644 --- a/utils.c +++ b/utils.c @@ -1,7 +1,10 @@ +#include "utils.h" + #include #include #include #include +#include #include #include #ifndef NO_MAIN @@ -11,8 +14,6 @@ #include #include -#include "utils.h" - typedef char pid_str[16]; static char const * app_name = NULL; -- cgit v1.2.3