From 81e1ea545ca465cda064e7cc80333fe7f0ef2aff Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 3 Dec 2022 12:07:32 +0100 Subject: Make LRU caches ipv6 aware (#1810) Simplest solution, keeping the existing cache data structure TLS certificate cache is used for DTLS traffic, too. Note that Ookla cache already works with ipv6 flows. TODO: * make the key/hashing more robust (extending the key size?) * update bittorrent cache too. That task is quite difficult because ntopng uses a public function (`ndpi_guess_undetected_protocol()`) intrinsically ipv4 only... --- src/lib/protocols/hangout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/hangout.c') diff --git a/src/lib/protocols/hangout.c b/src/lib/protocols/hangout.c index ebc978420..867e0544f 100644 --- a/src/lib/protocols/hangout.c +++ b/src/lib/protocols/hangout.c @@ -73,7 +73,7 @@ void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct, /* Hangout is over STUN hence the LRU cache is shared */ - if(ndpi_struct->stun_cache && packet->iph) { + if(ndpi_struct->stun_cache) { u_int32_t key = get_stun_lru_key(flow, !matched_src); #ifdef DEBUG_LRU -- cgit v1.2.3