aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/hangout.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-01-18 18:18:36 +0100
committerGitHub <noreply@github.com>2023-01-18 18:18:36 +0100
commit1b98bec0abb61fb86180a13869434da8519bd261 (patch)
treefce6f0e35e87b1f7027d319e5645b0907e3fde94 /src/lib/protocols/hangout.c
parentde24206adccf2347addc05d6d62b3bf743fef411 (diff)
LRU caches: add a generic (optional and configurable) expiration logic (#1855)
Two caches already implemented a similar mechanism: make it generic.
Diffstat (limited to 'src/lib/protocols/hangout.c')
-rw-r--r--src/lib/protocols/hangout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/hangout.c b/src/lib/protocols/hangout.c
index b5bde02da..576d95014 100644
--- a/src/lib/protocols/hangout.c
+++ b/src/lib/protocols/hangout.c
@@ -80,7 +80,7 @@ void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct,
printf("[LRU] ADDING %u / %u.%u\n", key, NDPI_PROTOCOL_STUN, NDPI_PROTOCOL_HANGOUT_DUO);
#endif
- ndpi_lru_add_to_cache(ndpi_struct->stun_cache, key, NDPI_PROTOCOL_HANGOUT_DUO);
+ ndpi_lru_add_to_cache(ndpi_struct->stun_cache, key, NDPI_PROTOCOL_HANGOUT_DUO, ndpi_get_current_time(flow));
}
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_HANGOUT_DUO,