diff options
Diffstat (limited to 'src/lib/protocols/mysql.c')
-rw-r--r-- | src/lib/protocols/mysql.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/protocols/mysql.c b/src/lib/protocols/mysql.c index 9e04a97d4..20df5df00 100644 --- a/src/lib/protocols/mysql.c +++ b/src/lib/protocols/mysql.c @@ -58,16 +58,14 @@ static void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_stru } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } void init_mysql_dissector(struct ndpi_detection_module_struct *ndpi_struct) { - ndpi_set_bitmask_protocol_detection("MySQL", ndpi_struct, - NDPI_PROTOCOL_MYSQL, - ndpi_search_mysql_tcp, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, - SAVE_DETECTION_BITMASK_AS_UNKNOWN, - ADD_TO_DETECTION_BITMASK); + register_dissector("MySQL", ndpi_struct, + ndpi_search_mysql_tcp, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + 1, NDPI_PROTOCOL_MYSQL); } |