int geoip_get_country_by_addr(const tor_addr_t *addr)
STATIC int geoip_parse_entry(const char *line, sa_family_t family)
STATIC void clear_geoip_db(void)
int geoip_get_country_by_ipv6(const struct in6_addr *addr)
int geoip_load_file(sa_family_t family, const char *filename, int severity)
const struct smartlist_t * geoip_get_countries(void)
const char * geoip_db_digest(sa_family_t family)
int geoip_is_loaded(sa_family_t family)
country_t geoip_get_country(const char *countrycode)
void geoip_free_all(void)
const char * geoip_get_country_name(country_t num)
int geoip_get_country_by_ipv4(uint32_t ipaddr)
int geoip_get_n_countries(void)
Define in6_addr, its members, and related types on platforms that lack it.
Declarations for types used throughout the Tor networking system.
Macros to implement mocking and selective exposure for the test code.
#define MOCK_DECL(rv, funcname, arglist)