aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/iec62056.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/iec62056.c')
-rw-r--r--src/lib/protocols/iec62056.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/protocols/iec62056.c b/src/lib/protocols/iec62056.c
index 14ede3d76..8793a8fc5 100644
--- a/src/lib/protocols/iec62056.c
+++ b/src/lib/protocols/iec62056.c
@@ -58,17 +58,13 @@ static void ndpi_search_iec62056(struct ndpi_detection_module_struct *ndpi_struc
}
}
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow);
}
-void init_iec62056_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
+void init_iec62056_dissector(struct ndpi_detection_module_struct *ndpi_struct)
{
- ndpi_set_bitmask_protocol_detection("IEC62056", ndpi_struct, *id,
- NDPI_PROTOCOL_IEC62056,
- ndpi_search_iec62056,
- NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
- SAVE_DETECTION_BITMASK_AS_UNKNOWN,
- ADD_TO_DETECTION_BITMASK);
-
- *id += 1;
+ register_dissector("IEC62056", ndpi_struct,
+ ndpi_search_iec62056,
+ NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+ 1, NDPI_PROTOCOL_IEC62056);
}