aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/lustre.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/lustre.c')
-rw-r--r--src/lib/protocols/lustre.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/protocols/lustre.c b/src/lib/protocols/lustre.c
index 6965fe51a..dd4997ca1 100644
--- a/src/lib/protocols/lustre.c
+++ b/src/lib/protocols/lustre.c
@@ -74,16 +74,13 @@ static void ndpi_search_lustre(struct ndpi_detection_module_struct *ndpi_struct,
}
}
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow);
}
-void init_lustre_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
+void init_lustre_dissector(struct ndpi_detection_module_struct *ndpi_struct)
{
- ndpi_set_bitmask_protocol_detection("Lustre", ndpi_struct, *id,
- NDPI_PROTOCOL_LUSTRE,
- ndpi_search_lustre,
- NDPI_SELECTION_BITMASK_PROTOCOL_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION /* Ipv4 only; Lustre doesn't support IPv6 */,
- SAVE_DETECTION_BITMASK_AS_UNKNOWN,
- ADD_TO_DETECTION_BITMASK);
- *id += 1;
+ register_dissector("Lustre", ndpi_struct,
+ ndpi_search_lustre,
+ NDPI_SELECTION_BITMASK_PROTOCOL_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, /* Ipv4 only; Lustre doesn't support IPv6 */
+ 1, NDPI_PROTOCOL_LUSTRE);
}