aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/iax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/iax.c')
-rw-r--r--src/lib/protocols/iax.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/protocols/iax.c b/src/lib/protocols/iax.c
index 45204229c..0482ffd19 100644
--- a/src/lib/protocols/iax.c
+++ b/src/lib/protocols/iax.c
@@ -2,7 +2,7 @@
* iax.c
*
* Copyright (C) 2009-11 - ipoque GmbH
- * Copyright (C) 2011-22 - ntop.org
+ * Copyright (C) 2011-25 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
@@ -82,7 +82,7 @@ static void ndpi_search_setup_iax(struct ndpi_detection_module_struct *ndpi_stru
}
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow);
}
@@ -96,14 +96,10 @@ static void ndpi_search_iax(struct ndpi_detection_module_struct *ndpi_struct, st
}
-void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
+void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct)
{
- ndpi_set_bitmask_protocol_detection("IAX", ndpi_struct, *id,
- NDPI_PROTOCOL_IAX,
- ndpi_search_iax,
- NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
- SAVE_DETECTION_BITMASK_AS_UNKNOWN,
- ADD_TO_DETECTION_BITMASK);
-
- *id += 1;
+ register_dissector("IAX", ndpi_struct,
+ ndpi_search_iax,
+ NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+ 1, NDPI_PROTOCOL_IAX);
}