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 <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-03-21 15:56:01 +01:00
parent daaaa61519
commit c0b7bdacbc
273 changed files with 1911 additions and 1493 deletions

View File

@@ -1,7 +1,10 @@
#include "utils.h"
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#ifndef NO_MAIN
@@ -11,8 +14,6 @@
#include <sys/types.h>
#include <unistd.h>
#include "utils.h"
typedef char pid_str[16];
static char const * app_name = NULL;