diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-13 20:33:15 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-13 22:05:08 +0200 |
commit | d4633c11927683865d8b7bec5e0e4162bae82a60 (patch) | |
tree | 12e0d78562254e297b7ef9c0f9d4cc3c8fa53874 /nDPIsrvd.c | |
parent | aca1615dc13bac949d507c493e9cef80fd2402ef (diff) |
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 <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r-- | nDPIsrvd.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |