diff options
Diffstat (limited to 'src/or/geoip.h')
-rw-r--r-- | src/or/geoip.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/geoip.h b/src/or/geoip.h index e468c270e7..145a421477 100644 --- a/src/or/geoip.h +++ b/src/or/geoip.h @@ -14,10 +14,12 @@ #ifdef GEOIP_PRIVATE int geoip_ipv4_parse_entry(const char *line); +int geoip_ipv6_parse_entry(const char *line); +int geoip_get_country_by_ipv4(uint32_t ipaddr); +int geoip_get_country_by_ipv6(const struct in6_addr *addr); #endif int should_record_bridge_info(const or_options_t *options); -int geoip_load_file(const char *filename, const or_options_t *options); -int geoip_get_country_by_ipv4(uint32_t ipaddr); +int geoip_load_file(sa_family_t family, const char *filename, const or_options_t *options); int geoip_get_country_by_addr(const tor_addr_t *addr); int geoip_get_n_countries(void); const char *geoip_get_country_name(country_t num); |