aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-10-10 16:51:45 +0200
committerLuca Deri <deri@ntop.org>2024-10-10 16:51:45 +0200
commitb9348e9d6e0e754c4b17661c643ca258f1540ca1 (patch)
tree2bb238e81d32caf2de1714d50518d6c4a039fe76 /src/include
parentab3e07335409f5c0710cdffbbf7091578f18f128 (diff)
Added new API calls for serializing/restoring the DNS cache
- bool ndpi_address_cache_dump(struct ndpi_address_cache *cache, char *path, u_int32_t epoch_now); - u_int32_t ndpi_address_cache_restore(struct ndpi_address_cache *cache, char *path, u_int32_t epoch_now);
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index b08b6e69f..94ba1f920 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -2344,6 +2344,8 @@ extern "C" {
struct ndpi_address_cache_item* ndpi_cache_address_find(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_ip_addr_t ip_addr);
+ bool ndpi_address_cache_dump(struct ndpi_address_cache *cache, char *path, u_int32_t epoch_now);
+ u_int32_t ndpi_address_cache_restore(struct ndpi_address_cache *cache, char *path, u_int32_t epoch_now);
/* ******************************* */