aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 3dde6be3c..921727291 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -2427,6 +2427,10 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
if(_maliciousSHA1Path)
ndpi_load_malicious_sha1_file(ndpi_thread_info[thread_id].workflow->ndpi_struct, _maliciousSHA1Path);
+ /* Enable/disable/configure LRU caches here */
+ ndpi_set_lru_cache_size(ndpi_thread_info[thread_id].workflow->ndpi_struct,
+ NDPI_LRUCACHE_BITTORRENT, 32768);
+
ndpi_finalize_initialization(ndpi_thread_info[thread_id].workflow->ndpi_struct);
if(enable_doh_dot_detection)