aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/teredo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/teredo.c')
-rw-r--r--src/lib/protocols/teredo.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/protocols/teredo.c b/src/lib/protocols/teredo.c
index 9ecdff7d2..f0cae2759 100644
--- a/src/lib/protocols/teredo.c
+++ b/src/lib/protocols/teredo.c
@@ -39,21 +39,16 @@ static void ndpi_search_teredo(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_LOG_INFO(ndpi_struct,"found teredo\n");
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TEREDO, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
} else {
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow);
}
}
-void init_teredo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
+void init_teredo_dissector(struct ndpi_detection_module_struct *ndpi_struct)
{
- ndpi_set_bitmask_protocol_detection("TEREDO", ndpi_struct, *id,
- NDPI_PROTOCOL_TEREDO,
- ndpi_search_teredo,
- /* Teredo is inherently IPV4 only */
- NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD,
- SAVE_DETECTION_BITMASK_AS_UNKNOWN,
- ADD_TO_DETECTION_BITMASK);
-
- *id += 1;
+ register_dissector("TEREDO", ndpi_struct,
+ ndpi_search_teredo,
+ NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD, /* Teredo is inherently IPV4 only */
+ 1, NDPI_PROTOCOL_TEREDO);
}