Tor  0.4.7.0-alpha-dev
Data Fields
geoip_ipv4_entry_t Struct Reference

Data Fields

uint32_t ip_low
 
uint32_t ip_high
 
intptr_t country
 

Detailed Description

An entry from the GeoIP IPv4 file: maps an IPv4 range to a country.

Definition at line 54 of file geoip.c.

Field Documentation

◆ country

intptr_t country

An index into geoip_countries

Definition at line 57 of file geoip.c.

Referenced by geoip_get_country_by_ipv4().

◆ ip_high

uint32_t ip_high

The highest IP in the range, in host order

Definition at line 56 of file geoip.c.

Referenced by geoip_ipv4_compare_key_to_entry_().

◆ ip_low

uint32_t ip_low

The lowest IP in the range, in host order

Definition at line 55 of file geoip.c.

Referenced by geoip_ipv4_compare_entries_().


The documentation for this struct was generated from the following file: