diff options
Diffstat (limited to 'src/lib/protocols/dnp3.c')
-rw-r--r-- | src/lib/protocols/dnp3.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/protocols/dnp3.c b/src/lib/protocols/dnp3.c index 99d23dad7..7472e33cd 100644 --- a/src/lib/protocols/dnp3.c +++ b/src/lib/protocols/dnp3.c @@ -1,7 +1,7 @@ /* * dnp3.c * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -49,20 +49,16 @@ static void ndpi_search_dnp3_tcp(struct ndpi_detection_module_struct *ndpi_struc return; } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } /* ******************************************************** */ -void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct, - u_int32_t *id) { - - ndpi_set_bitmask_protocol_detection("DNP3", ndpi_struct, *id, - NDPI_PROTOCOL_DNP3, - ndpi_search_dnp3_tcp, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, - SAVE_DETECTION_BITMASK_AS_UNKNOWN, - ADD_TO_DETECTION_BITMASK); - *id += 1; +void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct) { + + register_dissector("DNP3", ndpi_struct, + ndpi_search_dnp3_tcp, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + 1, NDPI_PROTOCOL_DNP3); } |