diff options
Diffstat (limited to 'tests/unit/unit.c')
-rw-r--r-- | tests/unit/unit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/unit.c b/tests/unit/unit.c index e1713a7c4..440ffadf4 100644 --- a/tests/unit/unit.c +++ b/tests/unit/unit.c @@ -356,6 +356,7 @@ int main(int argc, char **argv) { #ifndef WIN32 int c; #endif + NDPI_PROTOCOL_BITMASK all; if (ndpi_get_api_version() != NDPI_API_VERSION) { printf("nDPI Library version mismatch: please make sure this code and the nDPI library are in sync\n"); @@ -367,6 +368,10 @@ int main(int argc, char **argv) { if (ndpi_info_mod == NULL) return -1; + NDPI_BITMASK_SET_ALL(all); + ndpi_set_protocol_detection_bitmask2(ndpi_info_mod, &all); + ndpi_finalize_initialization(ndpi_info_mod); + /* * If we want argument parsing on Windows, * we need to re-implement it as Windows has no such function. |