aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-04-19 21:39:55 +0200
committerLuca Deri <deri@ntop.org>2021-04-19 21:39:55 +0200
commitc6a835746ee991f996e7c4d7709db722a321aa51 (patch)
tree62c1be125c497b4562c660a917e0d78cd1701467 /src/include
parent8c3674e9a30a0870effdb4c7eb5ad792f7ba6b6a (diff)
Reworked GeoIP API
int ndpi_get_geoip_asn(struct ndpi_detection_module_struct *ndpi_str, char *ip, u_int32_t *asn); int ndpi_get_geoip_country_continent(struct ndpi_detection_module_struct *ndpi_str, char *ip, char *country_code, u_int8_t country_code_len, char *continent, u_int8_t continent_len);
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in
index d284807f9..9f7bb23d3 100644
--- a/src/include/ndpi_api.h.in
+++ b/src/include/ndpi_api.h.in
@@ -1550,8 +1550,11 @@ extern "C" {
int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str,
const char *ip_city_data, const char *ip_as_data);
void ndpi_free_geoip(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);
+ int ndpi_get_geoip_asn(struct ndpi_detection_module_struct *ndpi_str,
+ char *ip, u_int32_t *asn);
+int ndpi_get_geoip_country_continent(struct ndpi_detection_module_struct *ndpi_str, char *ip,
+ char *country_code, u_int8_t country_code_len,
+ char *continent, u_int8_t continent_len);
#ifdef __cplusplus
}