diff options
Diffstat (limited to 'src/lib/protocols/munin.c')
-rw-r--r-- | src/lib/protocols/munin.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/protocols/munin.c b/src/lib/protocols/munin.c index 06e50d3a6..5e40adbb2 100644 --- a/src/lib/protocols/munin.c +++ b/src/lib/protocols/munin.c @@ -50,13 +50,13 @@ static void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct, // "# munin node at " if (packet->payload_packet_len < NDPI_STATICSTRING_LEN(munin_prefix)) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); return; } if (memcmp(packet->payload, munin_prefix, NDPI_STATICSTRING_LEN(munin_prefix)) != 0) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); return; } @@ -79,16 +79,10 @@ static void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct, /* ***************************************************** */ -void init_munin_dissector(struct ndpi_detection_module_struct *ndpi_struct, - u_int32_t *id) +void init_munin_dissector(struct ndpi_detection_module_struct *ndpi_struct) { - ndpi_set_bitmask_protocol_detection("Munin", ndpi_struct, *id, - NDPI_PROTOCOL_MUNIN, - ndpi_search_munin, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, - SAVE_DETECTION_BITMASK_AS_UNKNOWN, - ADD_TO_DETECTION_BITMASK - ); - - *id += 1; + register_dissector("Munin", ndpi_struct, + ndpi_search_munin, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + 1, NDPI_PROTOCOL_MUNIN); } |