diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2012-02-09 11:12:30 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2012-02-09 11:12:30 +0100 |
commit | 4aca55efd2ac627a0311cd5cb00d5ad02e765da2 (patch) | |
tree | 57a72261af71070f58ed0abacd0d2c30dc516553 /src/or/geoip.h | |
parent | ca431c54006341bf7097d2411b8742c4ab29e80d (diff) | |
download | tor-4aca55efd2ac627a0311cd5cb00d5ad02e765da2.tar.gz tor-4aca55efd2ac627a0311cd5cb00d5ad02e765da2.zip |
Count IPv6 connections in bridge and entry stats.
Diffstat (limited to 'src/or/geoip.h')
-rw-r--r-- | src/or/geoip.h | 3 |
1 files changed, 2 insertions, 1 deletions
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, |