diff options
author | Luca Deri <deri@ntop.org> | 2021-02-18 23:14:55 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-02-18 23:15:27 +0100 |
commit | 92e8d95f383f377fa787a916a35558729f674a8b (patch) | |
tree | 5df322c67b13588d315f76b6ffe01d419b6091fc /src/include | |
parent | bdf95a5c2268adc2e1a4a2bbdcb5dd489c8f8cf0 (diff) |
Added ndpi_get_geoip() APi call
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h.in | 6 |
1 files changed, 4 insertions, 2 deletions
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 |