From 92e8d95f383f377fa787a916a35558729f674a8b Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 18 Feb 2021 23:14:55 +0100 Subject: Added ndpi_get_geoip() APi call --- src/include/ndpi_api.h.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index 81a1df925..e701c51d4 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -1469,8 +1469,10 @@ extern "C" { int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, const char *ip_city_data, const char *ip_as_data); - int ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str); - + void ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str); + int ndpi_get_geoip(struct ndpi_detection_module_struct *ndpi_str, char *ip, + u_int32_t *asn, char *country_code, u_int8_t country_code_len); + #ifdef __cplusplus } #endif -- cgit v1.2.3