diff options
Diffstat (limited to 'src/lib/protocols/hsrp.c')
-rw-r--r-- | src/lib/protocols/hsrp.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/lib/protocols/hsrp.c b/src/lib/protocols/hsrp.c index de980344c..d6bf51dba 100644 --- a/src/lib/protocols/hsrp.c +++ b/src/lib/protocols/hsrp.c @@ -1,7 +1,7 @@ /* * ayiya.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 @@ -77,18 +77,13 @@ static void ndpi_search_hsrp(struct ndpi_detection_module_struct *ndpi_struct, } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } -void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, - u_int32_t *id) { - ndpi_set_bitmask_protocol_detection("HSRP", ndpi_struct, *id, - NDPI_PROTOCOL_HSRP, - ndpi_search_hsrp, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, - SAVE_DETECTION_BITMASK_AS_UNKNOWN, - ADD_TO_DETECTION_BITMASK); - - *id += 1; +void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct) { + register_dissector("HSRP", ndpi_struct, + ndpi_search_hsrp, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, + 1, NDPI_PROTOCOL_HSRP); } |