From d4633c11927683865d8b7bec5e0e4162bae82a60 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 13 Sep 2022 20:33:15 +0200 Subject: New flow event: 'analysis'. * The goal was to provide a separate event for extracted feature that are not required and only useful for a few (e.g. someone who wants do ML). * Increased network buffer size to 32kB (8192 * 4). * Switched timestamp precision from ms to us for *ALL* timestamps. Signed-off-by: Toni Uhlig --- nDPIsrvd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nDPIsrvd.c') diff --git a/nDPIsrvd.c b/nDPIsrvd.c index 6451fbce0..df0c76b41 100644 --- a/nDPIsrvd.c +++ b/nDPIsrvd.c @@ -1293,6 +1293,12 @@ static int handle_data_event(int epollfd, struct epoll_event * const event) if ((event->events & EPOLLIN) == 0 && (event->events & EPOLLOUT) == 0) { +#ifdef NO_MAIN + if ((event->events & EPOLLHUP) != 0) + { + return 1; + } +#endif logger(1, "Can not handle event mask: %d", event->events); return 1; } -- cgit v1.2.3