Added ndpi_init_detection_module() API preferences

This commit is contained in:
Luca Deri
2019-11-10 22:57:21 +01:00
parent d0e7e69552
commit 8181d63a95
5 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -4169,7 +4169,7 @@ int orginal_main(int argc, char **argv) {
analyzeUnitTest();
gettimeofday(&startup_time, NULL);
ndpi_info_mod = ndpi_init_detection_module();
ndpi_info_mod = ndpi_init_detection_module(0 /* Don't skip tor hosts */);
if(ndpi_info_mod == NULL) return -1;
+1 -1
View File
@@ -413,7 +413,7 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
set_ndpi_flow_malloc(NULL), set_ndpi_flow_free(NULL);
/* TODO: just needed here to init ndpi malloc wrapper */
module = ndpi_init_detection_module();
module = ndpi_init_detection_module(ndpi_no_prefs);
if(module == NULL) {
NDPI_LOG(0, NULL, NDPI_LOG_ERROR, "global structure initialization failed\n");