From 4aca55efd2ac627a0311cd5cb00d5ad02e765da2 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Thu, 9 Feb 2012 11:12:30 +0100 Subject: Count IPv6 connections in bridge and entry stats. --- src/or/geoip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/geoip.h') diff --git a/src/or/geoip.h b/src/or/geoip.h index ce3841967f..7c2eddce99 100644 --- a/src/or/geoip.h +++ b/src/or/geoip.h @@ -18,6 +18,7 @@ int geoip_parse_entry(const char *line); 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_ip(uint32_t ipaddr); +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); int geoip_is_loaded(void); @@ -25,7 +26,7 @@ const char *geoip_db_digest(void); country_t geoip_get_country(const char *countrycode); void geoip_note_client_seen(geoip_client_action_t action, - uint32_t addr, time_t now); + const tor_addr_t *addr, time_t now); void geoip_remove_old_clients(time_t cutoff); void geoip_note_ns_response(geoip_client_action_t action, -- cgit v1.2.3-54-g00ecf