diff options
author | Luca <deri@ntop.org> | 2019-08-12 14:16:28 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-08-12 14:16:28 +0200 |
commit | fdeecf5d41cd05bb831b7ccc377a6aff7ec18ec2 (patch) | |
tree | a912f558a56a82263f4b1d37f4a1394d09533e8a /src/lib/protocols/ookla.c | |
parent | 51ac583d83da16a5216f346d1834e156f639859e (diff) |
Implemented STUN cache to enhance matching of STUN-based protocols
Diffstat (limited to 'src/lib/protocols/ookla.c')
-rw-r--r-- | src/lib/protocols/ookla.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/ookla.c b/src/lib/protocols/ookla.c index 44746fbd3..f3c2108bc 100644 --- a/src/lib/protocols/ookla.c +++ b/src/lib/protocols/ookla.c @@ -38,7 +38,9 @@ void ndpi_search_ookla(struct ndpi_detection_module_struct* ndpi_struct, struct goto ookla_exclude; if(ndpi_struct->ookla_cache != NULL) { - if(ndpi_lru_find_cache(ndpi_struct->ookla_cache, addr, 0 /* Don't remove it as it can be used for other connections */)) { + u_int16_t dummy; + + if(ndpi_lru_find_cache(ndpi_struct->ookla_cache, addr, &dummy, 0 /* Don't remove it as it can be used for other connections */)) { NDPI_LOG_INFO(ndpi_struct, "found ookla tcp connection\n"); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_OOKLA, NDPI_PROTOCOL_UNKNOWN); return; |