diff options
author | Luca Deri <deri@ntop.org> | 2024-10-10 16:51:45 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-10-10 16:51:45 +0200 |
commit | b9348e9d6e0e754c4b17661c643ca258f1540ca1 (patch) | |
tree | 2bb238e81d32caf2de1714d50518d6c4a039fe76 /src/include | |
parent | ab3e07335409f5c0710cdffbbf7091578f18f128 (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.h | 2 |
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); /* ******************************* */ |