Added ndpi_get_geoip() APi call

This commit is contained in:
Luca Deri
2021-02-18 23:15:27 +01:00
parent bdf95a5c22
commit 92e8d95f38
2 changed files with 57 additions and 12 deletions
+4 -2
View File
@@ -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