From b9348e9d6e0e754c4b17661c643ca258f1540ca1 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 10 Oct 2024 16:51:45 +0200 Subject: 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); --- src/include/ndpi_api.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') 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); /* ******************************* */ -- cgit v1.2.3