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

Structure which contains a geolocation record. More...

Collaboration diagram for corsaro_geo_record:

Data Fields

uint32_t id
 A unique ID for this record (used to join the Blocks and Locations Files) More...
 
char country_code [3]
 2 character string which holds the ISO2 country code More...
 
int continent_code
 Continent Code. 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. 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...
 
char * conn_speed
 Connection Speed/Type. More...
 
uint32_t * asn
 Array of Autonomous System Numbers. More...
 
int asn_cnt
 Number of ASNs in the asn array. More...
 
uint32_t asn_ip_cnt
 Number of IP addresses that this ASN (or ASN group) 'owns'. More...
 
struct corsaro_geo_recordnext
 The next record in the list. More...
 

Detailed Description

Structure which contains a geolocation record.

Definition at line 45 of file corsaro_geo.h.

Field Documentation

uint32_t corsaro_geo_record::area_code

Area code.

Definition at line 82 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record().

uint32_t* corsaro_geo_record::asn

Array of Autonomous System Numbers.

Definition at line 88 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and read_routeviews().

int corsaro_geo_record::asn_cnt

Number of ASNs in the asn array.

Definition at line 91 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and read_routeviews().

uint32_t corsaro_geo_record::asn_ip_cnt

Number of IP addresses that this ASN (or ASN group) 'owns'.

Definition at line 94 of file corsaro_geo.h.

Referenced by read_routeviews().

char* corsaro_geo_record::city

String which contains the city name.

Definition at line 64 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

char* corsaro_geo_record::conn_speed

Connection Speed/Type.

Definition at line 85 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

int corsaro_geo_record::continent_code

Continent Code.

Definition at line 58 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

char corsaro_geo_record::country_code[3]

2 character string which holds the ISO2 country code

Definition at line 55 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), parse_netacq_edge_location_cell(), and process_generic().

uint32_t corsaro_geo_record::id

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

This should be considered unique only within a single geo provider type i.e. id's may not be unique across different corsaro_geo_provider_t objects

Definition at line 52 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), corsaro_geo_init_record(), and parse_netacq_edge_location_cell().

double corsaro_geo_record::latitude

Latitude of the city.

Definition at line 73 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

double corsaro_geo_record::longitude

Longitude of the city.

Definition at line 76 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

uint32_t corsaro_geo_record::metro_code

Metro code.

Definition at line 79 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

struct corsaro_geo_record* corsaro_geo_record::next

The next record in the list.

Definition at line 99 of file corsaro_geo.h.

Referenced by corsaro_geo_next_record(), corsaro_geo_provider_add_record(), and corsaro_geo_provider_clear().

char* corsaro_geo_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 70 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record(), and parse_netacq_edge_location_cell().

char corsaro_geo_record::region[3]

2 character string which represents the region the city is in

Definition at line 61 of file corsaro_geo.h.

Referenced by corsaro_geo_dump_record().


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