diff options
author | Luca Deri <deri@ntop.org> | 2019-01-17 00:40:28 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-01-17 00:40:28 +0100 |
commit | efef99cbadc8ddd6f6743e04d184fe240d6eb334 (patch) | |
tree | 2f2f02e0a26128f1db2fc6ca12b497da1202b720 /src/include/ndpi_api.h | |
parent | c856e0a56384ae9d145282d0eb6f8b97f54913fb (diff) |
Removed this party LRU and replaced with home grown
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index e57f3a568..e09c91c8e 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -756,6 +756,12 @@ extern "C" { u_int ndpi_get_ndpi_num_custom_protocols(struct ndpi_detection_module_struct *ndpi_mod); u_int ndpi_get_ndpi_detection_module_size(); void ndpi_set_log_level(struct ndpi_detection_module_struct *ndpi_mod, u_int l); + + /* LRU cache */ + struct ndpi_lru_cache* ndpi_lru_cache_init(u_int32_t num_entries); + void ndpi_lru_free_cache(struct ndpi_lru_cache *c); + u_int8_t ndpi_lru_find_cache(struct ndpi_lru_cache *c, u_int32_t key, u_int8_t clean_key_when_found); + void ndpi_lru_add_to_cache(struct ndpi_lru_cache *c, u_int32_t key); /** * Add a string to match to an automata |