Add monitoring capability (#2588)

Allow nDPI to process the entire flows and not only the first N packets.
Usefull when the application is interested in some metadata spanning the
entire life of the session.

As initial step, only STUN flows can be put in monitoring.

See `doc/monitoring.md` for further details.

This feature is disabled by default.

Close #2583
This commit is contained in:
Ivan Nardi 2024-10-14 18:05:35 +02:00 committed by GitHub
parent 44d0d9454c
commit 521d0ca7a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 813 additions and 42 deletions

View file

@ -14,6 +14,7 @@ int malloc_size_stats = 0;
FILE *fingerprint_fp = NULL;
bool do_load_lists = false;
char *addr_dump_path = NULL;
int monitoring_enabled = 0;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
FuzzedDataProvider fuzzed_data(data, size);