From d2103380c775c5d6715228301285f4786dd2a440 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 5 Dec 2023 07:39:50 +0100 Subject: Add Monero protocol classification. Signed-off-by: Toni Uhlig --- src/lib/ndpi_private.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib/ndpi_private.h') diff --git a/src/lib/ndpi_private.h b/src/lib/ndpi_private.h index 9829ef0c3..a14cfcd2d 100644 --- a/src/lib/ndpi_private.h +++ b/src/lib/ndpi_private.h @@ -414,15 +414,16 @@ int search_into_bittorrent_cache(struct ndpi_detection_module_struct *ndpi_struc struct ndpi_flow_struct *flow); -/* Mining */ -u_int32_t make_mining_key(struct ndpi_flow_struct *flow); - /* Stun */ int stun_search_into_zoom_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow); /* TPKT */ int tpkt_verify_hdr(const struct ndpi_packet_struct * const packet); +/* Mining Protocols (Ethereum, Monero, ...) */ +u_int32_t mining_make_lru_cache_key(struct ndpi_flow_struct *flow); + + /* Protocols init */ void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); @@ -472,6 +473,7 @@ void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_i void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_mms_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); +void init_monero_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_nats_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); void init_mssql_tds_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id); -- cgit v1.2.3