From ef62391dba4814ab840539406f276685ba8535f1 Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 13 Dec 2023 19:55:18 +0100 Subject: Add Monero protocol classification. (#2196) Signed-off-by: Toni Uhlig --- src/lib/protocols/ethereum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols/ethereum.c') diff --git a/src/lib/protocols/ethereum.c b/src/lib/protocols/ethereum.c index 5aaafc641..6440330ab 100644 --- a/src/lib/protocols/ethereum.c +++ b/src/lib/protocols/ethereum.c @@ -36,7 +36,7 @@ enum ether_disc_packet_type { /* ************************************************************************** */ -static u_int32_t ndpi_ether_make_lru_cache_key(struct ndpi_flow_struct *flow) { +u_int32_t mining_make_lru_cache_key(struct ndpi_flow_struct *flow) { u_int32_t key; /* network byte order */ @@ -53,7 +53,7 @@ static u_int32_t ndpi_ether_make_lru_cache_key(struct ndpi_flow_struct *flow) { static void ndpi_ether_cache_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { if(ndpi_struct->mining_cache) - ndpi_lru_add_to_cache(ndpi_struct->mining_cache, ndpi_ether_make_lru_cache_key(flow), NDPI_PROTOCOL_ETHEREUM, ndpi_get_current_time(flow)); + ndpi_lru_add_to_cache(ndpi_struct->mining_cache, mining_make_lru_cache_key(flow), NDPI_PROTOCOL_ETHEREUM, ndpi_get_current_time(flow)); } /* ************************************************************************** */ -- cgit v1.2.3