Fixed mispelled word
This commit is contained 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);
|
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,
|
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);
|
u_int32_t *asn, char *country_code, u_int8_t country_code_len);
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
const char *ip_city_data, const char *ip_as_data) {
|
||||||
#ifdef HAVE_MAXMINDDB
|
#ifdef HAVE_MAXMINDDB
|
||||||
int status;
|
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
|
#ifdef HAVE_MAXMINDDB
|
||||||
if(ndpi_str->mmdb_city_loaded) MMDB_close(&ndpi_str->mmdb_city);
|
if(ndpi_str->mmdb_city_loaded) MMDB_close(&ndpi_str->mmdb_city);
|
||||||
if(ndpi_str->mmdb_as_loaded) MMDB_close(&ndpi_str->mmdb_as);
|
if(ndpi_str->mmdb_as_loaded) MMDB_close(&ndpi_str->mmdb_as);
|
||||||
|
|||||||
+1
-1
@@ -2613,7 +2613,7 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) {
|
|||||||
#include "../../../nDPI-custom/ndpi_exit_detection_module.c"
|
#include "../../../nDPI-custom/ndpi_exit_detection_module.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ndpi_free_geeoip(ndpi_str);
|
ndpi_free_geoip(ndpi_str);
|
||||||
|
|
||||||
ndpi_free(ndpi_str);
|
ndpi_free(ndpi_str);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user