diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_api.h.in | 4 | ||||
-rw-r--r-- | src/lib/ndpi_geoip.c | 4 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index 118240916..d284807f9 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -1547,9 +1547,9 @@ extern "C" { /* ******************************* */ - int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, + int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str, const char *ip_city_data, const char *ip_as_data); - void ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str); + 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); diff --git a/src/lib/ndpi_geoip.c b/src/lib/ndpi_geoip.c index e85a9043d..d689258c3 100644 --- a/src/lib/ndpi_geoip.c +++ b/src/lib/ndpi_geoip.c @@ -35,7 +35,7 @@ /* ********************************************************************************* */ -int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, +int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str, const char *ip_city_data, const char *ip_as_data) { #ifdef HAVE_MAXMINDDB int status; @@ -59,7 +59,7 @@ int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, /* ********************************************************************************* */ -void ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str) { +void ndpi_free_geoip(struct ndpi_detection_module_struct *ndpi_str) { #ifdef HAVE_MAXMINDDB if(ndpi_str->mmdb_city_loaded) MMDB_close(&ndpi_str->mmdb_city); if(ndpi_str->mmdb_as_loaded) MMDB_close(&ndpi_str->mmdb_as); diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 30b9f19d9..baf076a75 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2613,7 +2613,7 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) { #include "../../../nDPI-custom/ndpi_exit_detection_module.c" #endif - ndpi_free_geeoip(ndpi_str); + ndpi_free_geoip(ndpi_str); ndpi_free(ndpi_str); } |