aboutsummaryrefslogtreecommitdiff
path: root/tests/dga/dga_evaluate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dga/dga_evaluate.c')
-rw-r--r--tests/dga/dga_evaluate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/dga/dga_evaluate.c b/tests/dga/dga_evaluate.c
index 6f4d187f8..97ea362d0 100644
--- a/tests/dga/dga_evaluate.c
+++ b/tests/dga/dga_evaluate.c
@@ -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);