Skip to Content
[CAIDA - Center for Applied Internet Data Analysis logo]
The Center for Applied Internet Data Analysis
corsaro_maxmind_record Struct Reference

Structure which contains a Maxmind GeoLite City record. More...

Data Fields

uint32_t id
 A unique ID for this record (used to join the Blocks and Locations Files) More...
 
uint16_t country_code
 16bit value which represents the ISO2 country code treat each byte as a character to convert to ASCII More...
 
char region [3]
 2 character string which represents the region the city is in More...
 
char * city
 String which contains the city name. More...
 
char * post_code
 String which contains the postal code Note, this cannot be an int as some countries (I'm looking at you, Canada) use characters. More...
 
double latitude
 Latitude of the city. More...
 
double longitude
 Longitude of the city. More...
 
uint32_t metro_code
 Metro code. More...
 
uint32_t area_code
 Area code. More...
 

Detailed Description

Structure which contains a Maxmind GeoLite City record.

Definition at line 39 of file corsaro_geodb.h.

Field Documentation

uint32_t corsaro_maxmind_record::area_code

Area code.

Definition at line 73 of file corsaro_geodb.h.

char* corsaro_maxmind_record::city

String which contains the city name.

Definition at line 55 of file corsaro_geodb.h.

uint16_t corsaro_maxmind_record::country_code

16bit value which represents the ISO2 country code treat each byte as a character to convert to ASCII

Definition at line 49 of file corsaro_geodb.h.

uint32_t corsaro_maxmind_record::id

A unique ID for this record (used to join the Blocks and Locations Files)

Definition at line 44 of file corsaro_geodb.h.

double corsaro_maxmind_record::latitude

Latitude of the city.

Definition at line 64 of file corsaro_geodb.h.

double corsaro_maxmind_record::longitude

Longitude of the city.

Definition at line 67 of file corsaro_geodb.h.

uint32_t corsaro_maxmind_record::metro_code

Metro code.

Definition at line 70 of file corsaro_geodb.h.

char* corsaro_maxmind_record::post_code

String which contains the postal code Note, this cannot be an int as some countries (I'm looking at you, Canada) use characters.

Definition at line 61 of file corsaro_geodb.h.

char corsaro_maxmind_record::region[3]

2 character string which represents the region the city is in

Definition at line 52 of file corsaro_geodb.h.


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