diff options
Diffstat (limited to 'src/lib/protocols/ipp.c')
-rw-r--r-- | src/lib/protocols/ipp.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/protocols/ipp.c b/src/lib/protocols/ipp.c index 13d10bed2..86be5040e 100644 --- a/src/lib/protocols/ipp.c +++ b/src/lib/protocols/ipp.c @@ -2,7 +2,7 @@ * ipp.c * * Copyright (C) 2009-11 - ipoque GmbH - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH @@ -52,18 +52,14 @@ static void ndpi_search_ipp(struct ndpi_detection_module_struct *ndpi_struct, st return; } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } -void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) +void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct) { - ndpi_set_bitmask_protocol_detection("IPP", ndpi_struct, *id, - NDPI_PROTOCOL_IPP, - ndpi_search_ipp, - 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("IPP", ndpi_struct, + ndpi_search_ipp, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + 1, NDPI_PROTOCOL_IPP); } |