config: remove enum ndpi_prefs

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 1289951b32
commit 88720331ae
22 changed files with 77 additions and 90 deletions
+3 -2
View File
@@ -48,7 +48,8 @@ static void ndpi_dbg_fn(u_int32_t protocol,
{
assert(protocol == NDPI_PROTOCOL_UNKNOWN);
assert(module_struct != NULL);
assert(log_level == NDPI_LOG_DEBUG_EXTRA);
/* While this program always logs at NDPI_LOG_DEBUG_EXTRA level, the
initialization of the library may log at any level */
(void)file;
(void)func;
@@ -91,7 +92,7 @@ int main(int argc, char **argv) {
/* Initialize nDPI detection module*/
NDPI_PROTOCOL_BITMASK all;
struct ndpi_detection_module_struct *ndpi_str = ndpi_init_detection_module(ndpi_no_prefs);
struct ndpi_detection_module_struct *ndpi_str = ndpi_init_detection_module();
assert(ndpi_str != NULL);
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(ndpi_str, &all);
+1 -1
View File
@@ -373,7 +373,7 @@ int main(int argc, char **argv) {
return -1;
}
ndpi_info_mod = ndpi_init_detection_module(ndpi_no_prefs);
ndpi_info_mod = ndpi_init_detection_module();
if (ndpi_info_mod == NULL)
return -1;