diff options
Diffstat (limited to 'src/lib/protocols/ethereum.c')
-rw-r--r-- | src/lib/protocols/ethereum.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/lib/protocols/ethereum.c b/src/lib/protocols/ethereum.c index 3f2531597..37eb802da 100644 --- a/src/lib/protocols/ethereum.c +++ b/src/lib/protocols/ethereum.c @@ -86,7 +86,7 @@ static void ndpi_search_ethereum_udp(struct ndpi_detection_module_struct *ndpi_s return; } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } /* ************************************************************************** */ @@ -132,7 +132,7 @@ static void ndpi_search_ethereum_tcp(struct ndpi_detection_module_struct *ndpi_s } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } /* ************************************************************************** */ @@ -149,16 +149,11 @@ static void ndpi_search_ethereum(struct ndpi_detection_module_struct *ndpi_struc /* ************************************************************************** */ -void init_ethereum_dissector(struct ndpi_detection_module_struct *ndpi_struct, - u_int32_t *id) +void init_ethereum_dissector(struct ndpi_detection_module_struct *ndpi_struct) { - ndpi_set_bitmask_protocol_detection("Ethereum", ndpi_struct, *id, - NDPI_PROTOCOL_ETHEREUM, - ndpi_search_ethereum, - 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("Ethereum", ndpi_struct, + ndpi_search_ethereum, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + 1, NDPI_PROTOCOL_ETHEREUM); } |