diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-12-03 12:07:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 12:07:32 +0100 |
commit | 81e1ea545ca465cda064e7cc80333fe7f0ef2aff (patch) | |
tree | d4aeb94cda0891d50f5502a289e0116b1cbeab8a /src/lib/protocols/hangout.c | |
parent | a387072872c93a7ebef637dec7745b2941bc5743 (diff) |
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...
Diffstat (limited to 'src/lib/protocols/hangout.c')
-rw-r--r-- | src/lib/protocols/hangout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |