Merge pull request #702 from bdrung/master

Support nDPI 2.1
This commit is contained in:
Pavel Odintsov 2018-01-31 21:08:19 +00:00 committed by GitHub
commit 447b82690a
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,11 @@ struct ndpi_detection_module_struct* init_ndpi() {
u_int32_t detection_tick_resolution = 1000;
struct ndpi_detection_module_struct* my_ndpi_struct =
#if NDPI_MAJOR >= 2
ndpi_init_detection_module();
#else
ndpi_init_detection_module(detection_tick_resolution, malloc, free, debug_printf);
#endif
if (my_ndpi_struct == NULL) {
// printf("Can't init nDPI");