GeoIP  1.6.12
About: GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from (contains an initial free GeoIP Country database).
  Fossies Dox: GeoIP-1.6.12.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

GeoIP.h File Reference
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
Include dependency graph for GeoIP.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GeoIPTag
 
struct  GeoIPLookup
 
struct  GeoIPRegionTag
 

Macros

#define SEGMENT_RECORD_LENGTH   3
 
#define LARGE_SEGMENT_RECORD_LENGTH   4
 
#define STANDARD_RECORD_LENGTH   3
 
#define ORG_RECORD_LENGTH   4
 
#define MAX_RECORD_LENGTH   4
 
#define NUM_DB_TYPES   (38 + 1)
 
#define GEOIP_CHKBIT_V6(bit, ptr)   (ptr[((127UL - bit) >> 3)] & (1UL << (~(127 - bit) & 7)))
 
#define GEOIP_API
 
#define GEOIP_DATA
 

Typedefs

typedef struct in6_addr geoipv6_t
 
typedef struct GeoIPTag GeoIP
 
typedef struct GeoIPLookup GeoIPLookup
 
typedef struct GeoIPRegionTag GeoIPRegion
 

Enumerations

enum  GeoIPExtFlags { GEOIP_TEREDO_BIT = 0 }
 
enum  GeoIPCharset { GEOIP_CHARSET_ISO_8859_1 = 0, GEOIP_CHARSET_UTF8 = 1 }
 
enum  GeoIPOptions {
  GEOIP_STANDARD = 0, GEOIP_MEMORY_CACHE = 1, GEOIP_CHECK_CACHE = 2, GEOIP_INDEX_CACHE = 4,
  GEOIP_MMAP_CACHE = 8, GEOIP_SILENCE = 16
}
 
enum  GeoIPDBTypes {
  GEOIP_COUNTRY_EDITION = 1, GEOIP_REGION_EDITION_REV0 = 7, GEOIP_CITY_EDITION_REV0 = 6, GEOIP_ORG_EDITION = 5,
  GEOIP_ISP_EDITION = 4, GEOIP_CITY_EDITION_REV1 = 2, GEOIP_REGION_EDITION_REV1 = 3, GEOIP_PROXY_EDITION = 8,
  GEOIP_ASNUM_EDITION = 9, GEOIP_NETSPEED_EDITION = 10, GEOIP_DOMAIN_EDITION = 11, GEOIP_COUNTRY_EDITION_V6 = 12,
  GEOIP_LOCATIONA_EDITION = 13, GEOIP_ACCURACYRADIUS_EDITION = 14, GEOIP_CITYCONFIDENCE_EDITION = 15, GEOIP_CITYCONFIDENCEDIST_EDITION = 16,
  GEOIP_LARGE_COUNTRY_EDITION = 17, GEOIP_LARGE_COUNTRY_EDITION_V6 = 18, GEOIP_CITYCONFIDENCEDIST_ISP_ORG_EDITION, GEOIP_CCM_COUNTRY_EDITION = 20,
  GEOIP_ASNUM_EDITION_V6 = 21, GEOIP_ISP_EDITION_V6 = 22, GEOIP_ORG_EDITION_V6 = 23, GEOIP_DOMAIN_EDITION_V6 = 24,
  GEOIP_LOCATIONA_EDITION_V6 = 25, GEOIP_REGISTRAR_EDITION = 26, GEOIP_REGISTRAR_EDITION_V6 = 27, GEOIP_USERTYPE_EDITION = 28,
  GEOIP_USERTYPE_EDITION_V6 = 29, GEOIP_CITY_EDITION_REV1_V6 = 30, GEOIP_CITY_EDITION_REV0_V6 = 31, GEOIP_NETSPEED_EDITION_REV1 = 32,
  GEOIP_NETSPEED_EDITION_REV1_V6 = 33, GEOIP_COUNTRYCONF_EDITION = 34, GEOIP_CITYCONF_EDITION = 35, GEOIP_REGIONCONF_EDITION = 36,
  GEOIP_POSTALCONF_EDITION = 37, GEOIP_ACCURACYRADIUS_EDITION_V6 = 38
}
 
enum  GeoIPProxyTypes { GEOIP_ANON_PROXY = 1, GEOIP_HTTP_X_FORWARDED_FOR_PROXY = 2, GEOIP_HTTP_CLIENT_IP_PROXY = 3 }
 
enum  GeoIPNetspeedValues { GEOIP_UNKNOWN_SPEED = 0, GEOIP_DIALUP_SPEED = 1, GEOIP_CABLEDSL_SPEED = 2, GEOIP_CORPORATE_SPEED = 3 }
 

Functions

void GeoIP_setup_custom_directory (char *dir)
 
GeoIPGeoIP_open_type (int type, int flags)
 
GeoIPGeoIP_new (int flags)
 
GeoIPGeoIP_open (const char *filename, int flags)
 
int GeoIP_db_avail (int type)
 
void GeoIP_delete (GeoIP *gi)
 
const char * GeoIP_country_code_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_code_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_code_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_code_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
const char * GeoIP_country_code_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_code_by_name_v6_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_code3_by_name_v6_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
const char * GeoIP_country_name_by_name_v6_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
int GeoIP_id_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
int GeoIP_id_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
int GeoIP_id_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
int GeoIP_id_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
int GeoIP_id_by_name_v6_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
int GeoIP_id_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_name_v6_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
GeoIPRegionGeoIP_region_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
void GeoIPRegion_delete (GeoIPRegion *gir)
 
void GeoIP_assign_region_by_inetaddr_gl (GeoIP *gi, unsigned long inetaddr, GeoIPRegion *gir, GeoIPLookup *gl)
 
void GeoIP_assign_region_by_inetaddr_v6_gl (GeoIP *gi, geoipv6_t inetaddr, GeoIPRegion *gir, GeoIPLookup *gl)
 
char * GeoIP_name_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl)
 
char * GeoIP_name_by_addr_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
char * GeoIP_name_by_name_gl (GeoIP *gi, const char *host, GeoIPLookup *gl)
 
char * GeoIP_name_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl)
 
char * GeoIP_name_by_addr_v6_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
char * GeoIP_name_by_name_v6_gl (GeoIP *gi, const char *name, GeoIPLookup *gl)
 
const char * GeoIP_code_by_id (int id)
 
const char * GeoIP_code3_by_id (int id)
 
const char * GeoIP_country_name_by_id (GeoIP *gi, int id)
 
const char * GeoIP_name_by_id (int id)
 
const char * GeoIP_continent_by_id (int id)
 
int GeoIP_id_by_code (const char *country)
 
unsigned GeoIP_num_countries (void)
 
char * GeoIP_database_info (GeoIP *gi)
 
unsigned char GeoIP_database_edition (GeoIP *gi)
 
int GeoIP_charset (GeoIP *gi)
 
int GeoIP_set_charset (GeoIP *gi, int charset)
 
int GeoIP_enable_teredo (GeoIP *gi, int true_false)
 
int GeoIP_teredo (GeoIP *gi)
 
char ** GeoIP_range_by_ip_gl (GeoIP *gi, const char *addr, GeoIPLookup *gl)
 
void GeoIP_range_by_ip_delete (char **ptr)
 
const char * GeoIP_region_name_by_code (const char *country_code, const char *region_code)
 
const char * GeoIP_time_zone_by_country_and_region (const char *country_code, const char *region_code)
 
unsigned long GeoIP_addr_to_num (const char *addr)
 
char * GeoIP_num_to_addr (unsigned long ipnum)
 
char * _GeoIP_iso_8859_1__utf8 (const char *iso)
 
int GeoIP_cleanup (void)
 
const char * GeoIP_lib_version (void)
 
const char * GeoIP_country_code_by_addr (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_code_by_name (GeoIP *gi, const char *host)
 
const char * GeoIP_country_code3_by_addr (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_code3_by_name (GeoIP *gi, const char *host)
 
const char * GeoIP_country_name_by_addr (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_name_by_name (GeoIP *gi, const char *host)
 
const char * GeoIP_country_name_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
const char * GeoIP_country_code_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
const char * GeoIP_country_code3_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
const char * GeoIP_country_name_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
const char * GeoIP_country_code_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
const char * GeoIP_country_code3_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
const char * GeoIP_country_code_by_addr_v6 (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_code_by_name_v6 (GeoIP *gi, const char *host)
 
const char * GeoIP_country_code3_by_addr_v6 (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_code3_by_name_v6 (GeoIP *gi, const char *host)
 
const char * GeoIP_country_name_by_addr_v6 (GeoIP *gi, const char *addr)
 
const char * GeoIP_country_name_by_name_v6 (GeoIP *gi, const char *host)
 
int GeoIP_id_by_addr (GeoIP *gi, const char *addr)
 
int GeoIP_id_by_name (GeoIP *gi, const char *host)
 
int GeoIP_id_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
int GeoIP_id_by_addr_v6 (GeoIP *gi, const char *addr)
 
int GeoIP_id_by_name_v6 (GeoIP *gi, const char *host)
 
int GeoIP_id_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
GeoIPRegionGeoIP_region_by_addr (GeoIP *gi, const char *addr)
 
GeoIPRegionGeoIP_region_by_name (GeoIP *gi, const char *host)
 
GeoIPRegionGeoIP_region_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
GeoIPRegionGeoIP_region_by_addr_v6 (GeoIP *gi, const char *addr)
 
GeoIPRegionGeoIP_region_by_name_v6 (GeoIP *gi, const char *host)
 
GeoIPRegionGeoIP_region_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
void GeoIP_assign_region_by_inetaddr (GeoIP *gi, unsigned long inetaddr, GeoIPRegion *gir)
 
void GeoIP_assign_region_by_inetaddr_v6 (GeoIP *gi, geoipv6_t inetaddr, GeoIPRegion *gir)
 
char * GeoIP_name_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
char * GeoIP_name_by_addr (GeoIP *gi, const char *addr)
 
char * GeoIP_name_by_name (GeoIP *gi, const char *host)
 
char * GeoIP_name_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
char * GeoIP_name_by_addr_v6 (GeoIP *gi, const char *addr)
 
char * GeoIP_name_by_name_v6 (GeoIP *gi, const char *name)
 
int GeoIP_last_netmask (GeoIP *gi)
 
char ** GeoIP_range_by_ip (GeoIP *gi, const char *addr)
 
int GeoIP_country_id_by_addr (GeoIP *gi, const char *addr)
 
int GeoIP_country_id_by_name (GeoIP *gi, const char *host)
 
char * GeoIP_org_by_addr (GeoIP *gi, const char *addr)
 
char * GeoIP_org_by_name (GeoIP *gi, const char *host)
 
char * GeoIP_org_by_ipnum (GeoIP *gi, unsigned long ipnum)
 
int GeoIP_country_id_by_addr_v6 (GeoIP *gi, const char *addr)
 
char * GeoIP_org_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum)
 
char * GeoIP_org_by_addr_v6 (GeoIP *gi, const char *addr)
 
char * GeoIP_org_by_name_v6 (GeoIP *gi, const char *name)
 

Variables

char ** GeoIPDBFileName
 
const char * GeoIPDBDescription [(38+1)]
 
const char * GeoIPCountryDBFileName
 
const char * GeoIPRegionDBFileName
 
const char * GeoIPCityDBFileName
 
const char * GeoIPOrgDBFileName
 
const char * GeoIPISPDBFileName
 
const char * GeoIPLocationADBFileName
 
const char * GeoIPAccuracyRadiusFileName
 
const char * GeoIPCityConfidenceFileName
 
char * GeoIP_custom_directory
 
const char GeoIP_country_code [256][3]
 
const char GeoIP_country_code3 [256][4]
 
const char * GeoIP_country_name [256]
 
const char * GeoIP_utf8_country_name [256]
 
const char GeoIP_country_continent [256][3]
 

Macro Definition Documentation

◆ GEOIP_API

#define GEOIP_API

Definition at line 166 of file GeoIP.h.

◆ GEOIP_CHKBIT_V6

#define GEOIP_CHKBIT_V6 (   bit,
  ptr 
)    (ptr[((127UL - bit) >> 3)] & (1UL << (~(127 - bit) & 7)))

Definition at line 56 of file GeoIP.h.

◆ GEOIP_DATA

#define GEOIP_DATA

Definition at line 167 of file GeoIP.h.

◆ LARGE_SEGMENT_RECORD_LENGTH

#define LARGE_SEGMENT_RECORD_LENGTH   4

Definition at line 47 of file GeoIP.h.

◆ MAX_RECORD_LENGTH

#define MAX_RECORD_LENGTH   4

Definition at line 50 of file GeoIP.h.

◆ NUM_DB_TYPES

#define NUM_DB_TYPES   (38 + 1)

Definition at line 51 of file GeoIP.h.

◆ ORG_RECORD_LENGTH

#define ORG_RECORD_LENGTH   4

Definition at line 49 of file GeoIP.h.

◆ SEGMENT_RECORD_LENGTH

#define SEGMENT_RECORD_LENGTH   3

Definition at line 46 of file GeoIP.h.

◆ STANDARD_RECORD_LENGTH

#define STANDARD_RECORD_LENGTH   3

Definition at line 48 of file GeoIP.h.

Typedef Documentation

◆ GeoIP

typedef struct GeoIPTag GeoIP

◆ GeoIPLookup

typedef struct GeoIPLookup GeoIPLookup

◆ GeoIPRegion

typedef struct GeoIPRegionTag GeoIPRegion

◆ geoipv6_t

typedef struct in6_addr geoipv6_t

Definition at line 54 of file GeoIP.h.

Enumeration Type Documentation

◆ GeoIPCharset

Enumerator
GEOIP_CHARSET_ISO_8859_1 
GEOIP_CHARSET_UTF8 

Definition at line 83 of file GeoIP.h.

◆ GeoIPDBTypes

Enumerator
GEOIP_COUNTRY_EDITION 
GEOIP_REGION_EDITION_REV0 
GEOIP_CITY_EDITION_REV0 
GEOIP_ORG_EDITION 
GEOIP_ISP_EDITION 
GEOIP_CITY_EDITION_REV1 
GEOIP_REGION_EDITION_REV1 
GEOIP_PROXY_EDITION 
GEOIP_ASNUM_EDITION 
GEOIP_NETSPEED_EDITION 
GEOIP_DOMAIN_EDITION 
GEOIP_COUNTRY_EDITION_V6 
GEOIP_LOCATIONA_EDITION 
GEOIP_ACCURACYRADIUS_EDITION 
GEOIP_CITYCONFIDENCE_EDITION 
GEOIP_CITYCONFIDENCEDIST_EDITION 
GEOIP_LARGE_COUNTRY_EDITION 
GEOIP_LARGE_COUNTRY_EDITION_V6 
GEOIP_CITYCONFIDENCEDIST_ISP_ORG_EDITION 
GEOIP_CCM_COUNTRY_EDITION 
GEOIP_ASNUM_EDITION_V6 
GEOIP_ISP_EDITION_V6 
GEOIP_ORG_EDITION_V6 
GEOIP_DOMAIN_EDITION_V6 
GEOIP_LOCATIONA_EDITION_V6 
GEOIP_REGISTRAR_EDITION 
GEOIP_REGISTRAR_EDITION_V6 
GEOIP_USERTYPE_EDITION 
GEOIP_USERTYPE_EDITION_V6 
GEOIP_CITY_EDITION_REV1_V6 
GEOIP_CITY_EDITION_REV0_V6 
GEOIP_NETSPEED_EDITION_REV1 
GEOIP_NETSPEED_EDITION_REV1_V6 
GEOIP_COUNTRYCONF_EDITION 
GEOIP_CITYCONF_EDITION 
GEOIP_REGIONCONF_EDITION 
GEOIP_POSTALCONF_EDITION 
GEOIP_ACCURACYRADIUS_EDITION_V6 

Definition at line 102 of file GeoIP.h.

◆ GeoIPExtFlags

Enumerator
GEOIP_TEREDO_BIT 

Definition at line 81 of file GeoIP.h.

◆ GeoIPNetspeedValues

Enumerator
GEOIP_UNKNOWN_SPEED 
GEOIP_DIALUP_SPEED 
GEOIP_CABLEDSL_SPEED 
GEOIP_CORPORATE_SPEED 

Definition at line 150 of file GeoIP.h.

◆ GeoIPOptions

Enumerator
GEOIP_STANDARD 
GEOIP_MEMORY_CACHE 
GEOIP_CHECK_CACHE 
GEOIP_INDEX_CACHE 
GEOIP_MMAP_CACHE 
GEOIP_SILENCE 

Definition at line 93 of file GeoIP.h.

◆ GeoIPProxyTypes

Enumerator
GEOIP_ANON_PROXY 
GEOIP_HTTP_X_FORWARDED_FOR_PROXY 
GEOIP_HTTP_CLIENT_IP_PROXY 

Definition at line 144 of file GeoIP.h.

Function Documentation

◆ _GeoIP_iso_8859_1__utf8()

char* _GeoIP_iso_8859_1__utf8 ( const char *  iso)

Definition at line 980 of file GeoIP.c.

Referenced by _extract_record(), _get_name_gl(), and _get_name_v6_gl().

◆ GeoIP_addr_to_num()

unsigned long GeoIP_addr_to_num ( const char *  addr)

◆ GeoIP_assign_region_by_inetaddr()

void GeoIP_assign_region_by_inetaddr ( GeoIP gi,
unsigned long  inetaddr,
GeoIPRegion gir 
)

Definition at line 177 of file GeoIP_deprecated.c.

References GeoIP_assign_region_by_inetaddr_gl().

◆ GeoIP_assign_region_by_inetaddr_gl()

◆ GeoIP_assign_region_by_inetaddr_v6()

void GeoIP_assign_region_by_inetaddr_v6 ( GeoIP gi,
geoipv6_t  inetaddr,
GeoIPRegion gir 
)

Definition at line 184 of file GeoIP_deprecated.c.

References GeoIP_assign_region_by_inetaddr_v6_gl().

◆ GeoIP_assign_region_by_inetaddr_v6_gl()

◆ GeoIP_charset()

int GeoIP_charset ( GeoIP gi)

Definition at line 2677 of file GeoIP.c.

References GeoIPTag::charset.

◆ GeoIP_cleanup()

int GeoIP_cleanup ( void  )

Definition at line 2748 of file GeoIP.c.

References GeoIPDBFileName, and NUM_DB_TYPES.

◆ GeoIP_code3_by_id()

◆ GeoIP_code_by_id()

◆ GeoIP_continent_by_id()

const char* GeoIP_continent_by_id ( int  id)

return continent of country

Definition at line 2723 of file GeoIP.c.

References GeoIP_country_continent, and num_GeoIP_countries.

◆ GeoIP_country_code3_by_addr()

const char* GeoIP_country_code3_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 99 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_addr_gl().

◆ GeoIP_country_code3_by_addr_gl()

const char* GeoIP_country_code3_by_addr_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1946 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_addr_gl().

Referenced by GeoIP_country_code3_by_addr().

◆ GeoIP_country_code3_by_addr_v6()

const char* GeoIP_country_code3_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 94 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_addr_v6_gl().

◆ GeoIP_country_code3_by_addr_v6_gl()

const char* GeoIP_country_code3_by_addr_v6_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1937 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_addr_v6_gl().

Referenced by GeoIP_country_code3_by_addr_v6().

◆ GeoIP_country_code3_by_ipnum()

const char* GeoIP_country_code3_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 133 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_ipnum_gl().

◆ GeoIP_country_code3_by_ipnum_gl()

const char* GeoIP_country_code3_by_ipnum_gl ( GeoIP gi,
unsigned long  ipnum,
GeoIPLookup gl 
)

Definition at line 1996 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_ipnum_gl().

Referenced by GeoIP_country_code3_by_ipnum().

◆ GeoIP_country_code3_by_ipnum_v6()

const char* GeoIP_country_code3_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 138 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_ipnum_v6_gl().

◆ GeoIP_country_code3_by_ipnum_v6_gl()

const char* GeoIP_country_code3_by_ipnum_v6_gl ( GeoIP gi,
geoipv6_t  ipnum,
GeoIPLookup gl 
)

Definition at line 2004 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_ipnum_v6_gl().

Referenced by GeoIP_country_code3_by_ipnum_v6().

◆ GeoIP_country_code3_by_name()

const char* GeoIP_country_code3_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 61 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_name_gl().

◆ GeoIP_country_code3_by_name_gl()

const char* GeoIP_country_code3_by_name_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1783 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_name_gl().

Referenced by GeoIP_country_code3_by_name().

◆ GeoIP_country_code3_by_name_v6()

const char* GeoIP_country_code3_by_name_v6 ( GeoIP gi,
const char *  host 
)

Definition at line 56 of file GeoIP_deprecated.c.

References GeoIP_country_code3_by_name_v6_gl().

◆ GeoIP_country_code3_by_name_v6_gl()

const char* GeoIP_country_code3_by_name_v6_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1774 of file GeoIP.c.

References GeoIP_code3_by_id(), and GeoIP_id_by_name_v6_gl().

Referenced by GeoIP_country_code3_by_name_v6().

◆ GeoIP_country_code_by_addr()

const char* GeoIP_country_code_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 89 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_addr_gl().

◆ GeoIP_country_code_by_addr_gl()

const char* GeoIP_country_code_by_addr_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1932 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_addr_gl().

Referenced by GeoIP_country_code_by_addr().

◆ GeoIP_country_code_by_addr_v6()

const char* GeoIP_country_code_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 85 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_addr_v6_gl().

◆ GeoIP_country_code_by_addr_v6_gl()

const char* GeoIP_country_code_by_addr_v6_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1925 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_addr_v6_gl().

Referenced by GeoIP_country_code_by_addr_v6().

◆ GeoIP_country_code_by_ipnum()

const char* GeoIP_country_code_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 128 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_ipnum_gl().

◆ GeoIP_country_code_by_ipnum_gl()

const char* GeoIP_country_code_by_ipnum_gl ( GeoIP gi,
unsigned long  ipnum,
GeoIPLookup gl 
)

Definition at line 1981 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_ipnum_gl().

Referenced by GeoIP_country_code_by_ipnum().

◆ GeoIP_country_code_by_ipnum_v6()

const char* GeoIP_country_code_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 123 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_ipnum_v6_gl().

◆ GeoIP_country_code_by_ipnum_v6_gl()

const char* GeoIP_country_code_by_ipnum_v6_gl ( GeoIP gi,
geoipv6_t  ipnum,
GeoIPLookup gl 
)

Definition at line 1990 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_ipnum_v6_gl().

Referenced by GeoIP_country_code_by_ipnum_v6().

◆ GeoIP_country_code_by_name()

const char* GeoIP_country_code_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 51 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_name_gl().

◆ GeoIP_country_code_by_name_gl()

const char* GeoIP_country_code_by_name_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1768 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_name_gl().

Referenced by GeoIP_country_code_by_name().

◆ GeoIP_country_code_by_name_v6()

const char* GeoIP_country_code_by_name_v6 ( GeoIP gi,
const char *  host 
)

Definition at line 46 of file GeoIP_deprecated.c.

References GeoIP_country_code_by_name_v6_gl().

◆ GeoIP_country_code_by_name_v6_gl()

const char* GeoIP_country_code_by_name_v6_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1761 of file GeoIP.c.

References GeoIP_code_by_id(), and GeoIP_id_by_name_v6_gl().

Referenced by GeoIP_country_code_by_name_v6().

◆ GeoIP_country_id_by_addr()

int GeoIP_country_id_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 148 of file GeoIP_deprecated.c.

References GeoIP_id_by_addr_gl().

◆ GeoIP_country_id_by_addr_v6()

int GeoIP_country_id_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 143 of file GeoIP_deprecated.c.

References GeoIP_id_by_addr_v6_gl().

◆ GeoIP_country_id_by_name()

int GeoIP_country_id_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 156 of file GeoIP_deprecated.c.

References GeoIP_id_by_name_gl().

◆ GeoIP_country_name_by_addr()

const char* GeoIP_country_name_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 108 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_addr_gl().

◆ GeoIP_country_name_by_addr_gl()

const char* GeoIP_country_name_by_addr_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1960 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_addr_gl().

Referenced by GeoIP_country_name_by_addr().

◆ GeoIP_country_name_by_addr_v6()

const char* GeoIP_country_name_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 104 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_addr_v6_gl().

◆ GeoIP_country_name_by_addr_v6_gl()

const char* GeoIP_country_name_by_addr_v6_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 1953 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_addr_v6_gl().

Referenced by GeoIP_country_name_by_addr_v6().

◆ GeoIP_country_name_by_id()

◆ GeoIP_country_name_by_ipnum()

const char* GeoIP_country_name_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 113 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_ipnum_gl().

◆ GeoIP_country_name_by_ipnum_gl()

const char* GeoIP_country_name_by_ipnum_gl ( GeoIP gi,
unsigned long  ipnum,
GeoIPLookup gl 
)

Definition at line 1966 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_ipnum_gl().

Referenced by GeoIP_country_name_by_ipnum().

◆ GeoIP_country_name_by_ipnum_v6()

const char* GeoIP_country_name_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 118 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_ipnum_v6_gl().

◆ GeoIP_country_name_by_ipnum_v6_gl()

const char* GeoIP_country_name_by_ipnum_v6_gl ( GeoIP gi,
geoipv6_t  ipnum,
GeoIPLookup gl 
)

Definition at line 1975 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_ipnum_v6_gl().

Referenced by GeoIP_country_name_by_ipnum_v6().

◆ GeoIP_country_name_by_name()

const char* GeoIP_country_name_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 71 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_name_gl().

◆ GeoIP_country_name_by_name_gl()

const char* GeoIP_country_name_by_name_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1797 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_name_gl().

Referenced by GeoIP_country_name_by_name().

◆ GeoIP_country_name_by_name_v6()

const char* GeoIP_country_name_by_name_v6 ( GeoIP gi,
const char *  host 
)

Definition at line 66 of file GeoIP_deprecated.c.

References GeoIP_country_name_by_name_v6_gl().

◆ GeoIP_country_name_by_name_v6_gl()

const char* GeoIP_country_name_by_name_v6_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 1790 of file GeoIP.c.

References GeoIP_country_name_by_id(), and GeoIP_id_by_name_v6_gl().

Referenced by GeoIP_country_name_by_name_v6().

◆ GeoIP_database_edition()

unsigned char GeoIP_database_edition ( GeoIP gi)

Definition at line 2660 of file GeoIP.c.

References GeoIPTag::databaseType.

Referenced by main().

◆ GeoIP_database_info()

char* GeoIP_database_info ( GeoIP gi)

◆ GeoIP_db_avail()

int GeoIP_db_avail ( int  type)

Definition at line 1026 of file GeoIP.c.

References _file_exists(), _GeoIP_setup_dbfilename(), GeoIPDBFileName, and NUM_DB_TYPES.

Referenced by main().

◆ GeoIP_delete()

◆ GeoIP_enable_teredo()

int GeoIP_enable_teredo ( GeoIP gi,
int  true_false 
)

Definition at line 2662 of file GeoIP.c.

References GeoIPTag::ext_flags, and GEOIP_TEREDO_BIT.

◆ GeoIP_id_by_addr()

int GeoIP_id_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 164 of file GeoIP_deprecated.c.

References GeoIP_id_by_addr_gl().

◆ GeoIP_id_by_addr_gl()

◆ GeoIP_id_by_addr_v6()

int GeoIP_id_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 160 of file GeoIP_deprecated.c.

References GeoIP_id_by_addr_v6_gl().

◆ GeoIP_id_by_addr_v6_gl()

◆ GeoIP_id_by_code()

int GeoIP_id_by_code ( const char *  country)

return id by country code

Definition at line 2732 of file GeoIP.c.

References GeoIP_country_code, and num_GeoIP_countries.

◆ GeoIP_id_by_ipnum()

int GeoIP_id_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 173 of file GeoIP_deprecated.c.

References GeoIP_id_by_ipnum_gl().

Referenced by geoiplookup().

◆ GeoIP_id_by_ipnum_gl()

◆ GeoIP_id_by_ipnum_v6()

int GeoIP_id_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 169 of file GeoIP_deprecated.c.

References GeoIP_id_by_ipnum_v6_gl().

Referenced by geoiplookup().

◆ GeoIP_id_by_ipnum_v6_gl()

◆ GeoIP_id_by_name()

int GeoIP_id_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 76 of file GeoIP_deprecated.c.

References GeoIP_id_by_name_gl().

◆ GeoIP_id_by_name_gl()

◆ GeoIP_id_by_name_v6()

int GeoIP_id_by_name_v6 ( GeoIP gi,
const char *  host 
)

Definition at line 80 of file GeoIP_deprecated.c.

References GeoIP_id_by_name_v6_gl().

◆ GeoIP_id_by_name_v6_gl()

◆ GeoIP_last_netmask()

int GeoIP_last_netmask ( GeoIP gi)

GeoIP_last_netmask is deprecated - it is not thread safe

Definition at line 34 of file GeoIP_deprecated.c.

References GeoIPTag::netmask.

Referenced by _say_range_by_ip().

◆ GeoIP_lib_version()

const char* GeoIP_lib_version ( void  )

Definition at line 2746 of file GeoIP.c.

◆ GeoIP_name_by_addr()

char* GeoIP_name_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 231 of file GeoIP_deprecated.c.

References GeoIP_name_by_addr_gl().

◆ GeoIP_name_by_addr_gl()

char* GeoIP_name_by_addr_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 2619 of file GeoIP.c.

References _get_name_gl(), and GeoIP_addr_to_num().

Referenced by GeoIP_name_by_addr(), and GeoIP_org_by_addr().

◆ GeoIP_name_by_addr_v6()

char* GeoIP_name_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 235 of file GeoIP_deprecated.c.

References GeoIP_name_by_addr_v6_gl().

◆ GeoIP_name_by_addr_v6_gl()

char* GeoIP_name_by_addr_v6_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

Definition at line 2628 of file GeoIP.c.

References _GeoIP_addr_to_num_v6(), and _get_name_v6_gl().

Referenced by GeoIP_name_by_addr_v6(), and GeoIP_org_by_addr_v6().

◆ GeoIP_name_by_id()

const char* GeoIP_name_by_id ( int  id)

return full name of country

return full name of country in iso-8859-1

Definition at line 2714 of file GeoIP.c.

References GeoIP_country_name, and num_GeoIP_countries.

◆ GeoIP_name_by_ipnum()

char* GeoIP_name_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 223 of file GeoIP_deprecated.c.

References GeoIP_name_by_ipnum_gl().

Referenced by geoiplookup().

◆ GeoIP_name_by_ipnum_gl()

char* GeoIP_name_by_ipnum_gl ( GeoIP gi,
unsigned long  ipnum,
GeoIPLookup gl 
)

Definition at line 2611 of file GeoIP.c.

References _get_name_gl().

Referenced by GeoIP_name_by_ipnum(), and GeoIP_org_by_ipnum().

◆ GeoIP_name_by_ipnum_v6()

char* GeoIP_name_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 227 of file GeoIP_deprecated.c.

References GeoIP_name_by_ipnum_v6_gl().

Referenced by geoiplookup().

◆ GeoIP_name_by_ipnum_v6_gl()

char* GeoIP_name_by_ipnum_v6_gl ( GeoIP gi,
geoipv6_t  ipnum,
GeoIPLookup gl 
)

Definition at line 2615 of file GeoIP.c.

References _get_name_v6_gl().

Referenced by GeoIP_name_by_ipnum_v6(), and GeoIP_org_by_ipnum_v6().

◆ GeoIP_name_by_name()

char* GeoIP_name_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 240 of file GeoIP_deprecated.c.

References GeoIP_name_by_name_gl().

◆ GeoIP_name_by_name_gl()

char* GeoIP_name_by_name_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

Definition at line 2637 of file GeoIP.c.

References _GeoIP_lookupaddress(), and _get_name_gl().

Referenced by GeoIP_name_by_name(), and GeoIP_org_by_name().

◆ GeoIP_name_by_name_v6()

char* GeoIP_name_by_name_v6 ( GeoIP gi,
const char *  name 
)

Definition at line 245 of file GeoIP_deprecated.c.

References GeoIP_name_by_name_v6_gl().

◆ GeoIP_name_by_name_v6_gl()

char* GeoIP_name_by_name_v6_gl ( GeoIP gi,
const char *  name,
GeoIPLookup gl 
)

◆ GeoIP_new()

GeoIP* GeoIP_new ( int  flags)

◆ GeoIP_num_countries()

unsigned GeoIP_num_countries ( void  )

return return number of known countries

Definition at line 2744 of file GeoIP.c.

References num_GeoIP_countries.

Referenced by geoiplookup().

◆ GeoIP_num_to_addr()

char* GeoIP_num_to_addr ( unsigned long  ipnum)

Definition at line 2526 of file GeoIP.c.

Referenced by GeoIP_range_by_ip_gl().

◆ GeoIP_open()

◆ GeoIP_open_type()

GeoIP* GeoIP_open_type ( int  type,
int  flags 
)

◆ GeoIP_org_by_addr()

char* GeoIP_org_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 14 of file GeoIP_deprecated.c.

References GeoIP_name_by_addr_gl().

◆ GeoIP_org_by_addr_v6()

char* GeoIP_org_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 19 of file GeoIP_deprecated.c.

References GeoIP_name_by_addr_v6_gl().

◆ GeoIP_org_by_ipnum()

char* GeoIP_org_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 4 of file GeoIP_deprecated.c.

References GeoIP_name_by_ipnum_gl().

Referenced by geoiplookup().

◆ GeoIP_org_by_ipnum_v6()

char* GeoIP_org_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 9 of file GeoIP_deprecated.c.

References GeoIP_name_by_ipnum_v6_gl().

◆ GeoIP_org_by_name()

char* GeoIP_org_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 24 of file GeoIP_deprecated.c.

References GeoIP_name_by_name_gl().

◆ GeoIP_org_by_name_v6()

char* GeoIP_org_by_name_v6 ( GeoIP gi,
const char *  name 
)

Definition at line 29 of file GeoIP_deprecated.c.

References GeoIP_name_by_name_v6_gl().

◆ GeoIP_range_by_ip()

char** GeoIP_range_by_ip ( GeoIP gi,
const char *  addr 
)

Definition at line 218 of file GeoIP_deprecated.c.

References GeoIP_range_by_ip_gl().

Referenced by _say_range_by_ip().

◆ GeoIP_range_by_ip_delete()

void GeoIP_range_by_ip_delete ( char **  ptr)

Definition at line 2599 of file GeoIP.c.

Referenced by _say_range_by_ip().

◆ GeoIP_range_by_ip_gl()

char** GeoIP_range_by_ip_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

◆ GeoIP_region_by_addr()

GeoIPRegion* GeoIP_region_by_addr ( GeoIP gi,
const char *  addr 
)

Definition at line 191 of file GeoIP_deprecated.c.

References GeoIP_region_by_addr_gl().

◆ GeoIP_region_by_addr_gl()

GeoIPRegion* GeoIP_region_by_addr_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

◆ GeoIP_region_by_addr_v6()

GeoIPRegion* GeoIP_region_by_addr_v6 ( GeoIP gi,
const char *  addr 
)

Definition at line 195 of file GeoIP_deprecated.c.

References GeoIP_region_by_addr_v6_gl().

◆ GeoIP_region_by_addr_v6_gl()

GeoIPRegion* GeoIP_region_by_addr_v6_gl ( GeoIP gi,
const char *  addr,
GeoIPLookup gl 
)

◆ GeoIP_region_by_ipnum()

GeoIPRegion* GeoIP_region_by_ipnum ( GeoIP gi,
unsigned long  ipnum 
)

Definition at line 209 of file GeoIP_deprecated.c.

References GeoIP_region_by_ipnum_gl().

Referenced by geoiplookup().

◆ GeoIP_region_by_ipnum_gl()

GeoIPRegion* GeoIP_region_by_ipnum_gl ( GeoIP gi,
unsigned long  ipnum,
GeoIPLookup gl 
)

◆ GeoIP_region_by_ipnum_v6()

GeoIPRegion* GeoIP_region_by_ipnum_v6 ( GeoIP gi,
geoipv6_t  ipnum 
)

Definition at line 213 of file GeoIP_deprecated.c.

References GeoIP_region_by_ipnum_v6_gl().

◆ GeoIP_region_by_ipnum_v6_gl()

GeoIPRegion* GeoIP_region_by_ipnum_v6_gl ( GeoIP gi,
geoipv6_t  ipnum,
GeoIPLookup gl 
)

◆ GeoIP_region_by_name()

GeoIPRegion* GeoIP_region_by_name ( GeoIP gi,
const char *  host 
)

Definition at line 200 of file GeoIP_deprecated.c.

References GeoIP_region_by_name_gl().

◆ GeoIP_region_by_name_gl()

GeoIPRegion* GeoIP_region_by_name_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

◆ GeoIP_region_by_name_v6()

GeoIPRegion* GeoIP_region_by_name_v6 ( GeoIP gi,
const char *  host 
)

Definition at line 204 of file GeoIP_deprecated.c.

References GeoIP_region_by_name_v6_gl().

◆ GeoIP_region_by_name_v6_gl()

GeoIPRegion* GeoIP_region_by_name_v6_gl ( GeoIP gi,
const char *  host,
GeoIPLookup gl 
)

◆ GeoIP_region_name_by_code()

const char* GeoIP_region_name_by_code ( const char *  country_code,
const char *  region_code 
)

Definition at line 9584 of file regionName.c.

References get_region_name_AD(), get_region_name_AE(), get_region_name_AF(), get_region_name_AG(), get_region_name_AL(), get_region_name_AM(), get_region_name_AO(), get_region_name_AR(), get_region_name_AT(), get_region_name_AU(), get_region_name_AZ(), get_region_name_BA(), get_region_name_BB(), get_region_name_BD(), get_region_name_BE(), get_region_name_BF(), get_region_name_BG(), get_region_name_BH(), get_region_name_BI(), get_region_name_BJ(), get_region_name_BM(), get_region_name_BN(), get_region_name_BO(), get_region_name_BR(), get_region_name_BS(), get_region_name_BT(), get_region_name_BW(), get_region_name_BY(), get_region_name_BZ(), get_region_name_CA(), get_region_name_CD(), get_region_name_CF(), get_region_name_CG(), get_region_name_CH(), get_region_name_CI(), get_region_name_CL(), get_region_name_CM(), get_region_name_CN(), get_region_name_CO(), get_region_name_CR(), get_region_name_CU(), get_region_name_CV(), get_region_name_CY(), get_region_name_CZ(), get_region_name_DE(), get_region_name_DJ(), get_region_name_DK(), get_region_name_DM(), get_region_name_DO(), get_region_name_DZ(), get_region_name_EC(), get_region_name_EE(), get_region_name_EG(), get_region_name_ER(), get_region_name_ES(), get_region_name_ET(), get_region_name_FI(), get_region_name_FJ(), get_region_name_FM(), get_region_name_FR(), get_region_name_GA(), get_region_name_GB(), get_region_name_GD(), get_region_name_GE(), get_region_name_GH(), get_region_name_GL(), get_region_name_GM(), get_region_name_GN(), get_region_name_GQ(), get_region_name_GR(), get_region_name_GT(), get_region_name_GW(), get_region_name_GY(), get_region_name_HN(), get_region_name_HR(), get_region_name_HT(), get_region_name_HU(), get_region_name_ID(), get_region_name_IE(), get_region_name_IL(), get_region_name_IN(), get_region_name_IQ(), get_region_name_IR(), get_region_name_IS(), get_region_name_IT(), get_region_name_JM(), get_region_name_JO(), get_region_name_JP(), get_region_name_KE(), get_region_name_KG(), get_region_name_KH(), get_region_name_KI(), get_region_name_KM(), get_region_name_KN(), get_region_name_KP(), get_region_name_KR(), get_region_name_KW(), get_region_name_KY(), get_region_name_KZ(), get_region_name_LA(), get_region_name_LB(), get_region_name_LC(), get_region_name_LI(), get_region_name_LK(), get_region_name_LR(), get_region_name_LS(), get_region_name_LT(), get_region_name_LU(), get_region_name_LV(), get_region_name_LY(), get_region_name_MA(), get_region_name_MC(), get_region_name_MD(), get_region_name_MG(), get_region_name_MK(), get_region_name_ML(), get_region_name_MM(), get_region_name_MN(), get_region_name_MO(), get_region_name_MR(), get_region_name_MS(), get_region_name_MU(), get_region_name_MV(), get_region_name_MW(), get_region_name_MX(), get_region_name_MY(), get_region_name_MZ(), get_region_name_NA(), get_region_name_NE(), get_region_name_NG(), get_region_name_NI(), get_region_name_NL(), get_region_name_NO(), get_region_name_NP(), get_region_name_NR(), get_region_name_NZ(), get_region_name_OM(), get_region_name_PA(), get_region_name_PE(), get_region_name_PG(), get_region_name_PH(), get_region_name_PK(), get_region_name_PL(), get_region_name_PS(), get_region_name_PT(), get_region_name_PY(), get_region_name_QA(), get_region_name_RO(), get_region_name_RS(), get_region_name_RU(), get_region_name_RW(), get_region_name_SA(), get_region_name_SB(), get_region_name_SC(), get_region_name_SD(), get_region_name_SE(), get_region_name_SH(), get_region_name_SI(), get_region_name_SK(), get_region_name_SL(), get_region_name_SM(), get_region_name_SN(), get_region_name_SO(), get_region_name_SR(), get_region_name_SS(), get_region_name_ST(), get_region_name_SV(), get_region_name_SY(), get_region_name_SZ(), get_region_name_TD(), get_region_name_TG(), get_region_name_TH(), get_region_name_TJ(), get_region_name_TL(), get_region_name_TM(), get_region_name_TN(), get_region_name_TO(), get_region_name_TR(), get_region_name_TT(), get_region_name_TW(), get_region_name_TZ(), get_region_name_UA(), get_region_name_UG(), get_region_name_US(), get_region_name_UY(), get_region_name_UZ(), get_region_name_VC(), get_region_name_VE(), get_region_name_VN(), get_region_name_VU(), get_region_name_WS(), get_region_name_YE(), get_region_name_ZA(), get_region_name_ZM(), and get_region_name_ZW().

Referenced by geoiplookup().

◆ GeoIP_set_charset()

int GeoIP_set_charset ( GeoIP gi,
int  charset 
)

Definition at line 2679 of file GeoIP.c.

References GeoIPTag::charset.

◆ GeoIP_setup_custom_directory()

void GeoIP_setup_custom_directory ( char *  dir)

Definition at line 850 of file GeoIP.c.

References GeoIP_custom_directory.

Referenced by main().

◆ GeoIP_teredo()

int GeoIP_teredo ( GeoIP gi)

Definition at line 2672 of file GeoIP.c.

References GeoIPTag::ext_flags, and GEOIP_TEREDO_BIT.

Referenced by _GeoIP_seek_record_v6_gl().

◆ GeoIP_time_zone_by_country_and_region()

const char* GeoIP_time_zone_by_country_and_region ( const char *  country_code,
const char *  region_code 
)

Definition at line 2 of file timeZone.c.

◆ GeoIPRegion_delete()

void GeoIPRegion_delete ( GeoIPRegion gir)

Definition at line 2404 of file GeoIP.c.

Referenced by geoiplookup().

Variable Documentation

◆ GeoIP_country_code

const char GeoIP_country_code[256][3]

Definition at line 100 of file GeoIP.c.

Referenced by _extract_record(), GeoIP_code_by_id(), GeoIP_id_by_code(), and geoiplookup().

◆ GeoIP_country_code3

const char GeoIP_country_code3[256][4]

Definition at line 127 of file GeoIP.c.

Referenced by _extract_record(), and GeoIP_code3_by_id().

◆ GeoIP_country_continent

const char GeoIP_country_continent[256][3]

Definition at line 675 of file GeoIP.c.

Referenced by _extract_record(), and GeoIP_continent_by_id().

◆ GeoIP_country_name

const char* GeoIP_country_name[256]

Definition at line 413 of file GeoIP.c.

Referenced by GeoIP_country_name_by_id(), GeoIP_name_by_id(), and geoiplookup().

◆ GeoIP_custom_directory

char* GeoIP_custom_directory

Definition at line 848 of file GeoIP.c.

Referenced by _GeoIP_full_path_to(), and GeoIP_setup_custom_directory().

◆ GeoIP_utf8_country_name

const char* GeoIP_utf8_country_name[256]

Definition at line 153 of file GeoIP.c.

Referenced by GeoIP_country_name_by_id().

◆ GeoIPAccuracyRadiusFileName

const char* GeoIPAccuracyRadiusFileName

◆ GeoIPCityConfidenceFileName

const char* GeoIPCityConfidenceFileName

◆ GeoIPCityDBFileName

const char* GeoIPCityDBFileName

◆ GeoIPCountryDBFileName

const char* GeoIPCountryDBFileName

◆ GeoIPDBDescription

const char* GeoIPDBDescription[(38+1)]

◆ GeoIPDBFileName

char** GeoIPDBFileName

◆ GeoIPISPDBFileName

const char* GeoIPISPDBFileName

◆ GeoIPLocationADBFileName

const char* GeoIPLocationADBFileName

◆ GeoIPOrgDBFileName

const char* GeoIPOrgDBFileName

◆ GeoIPRegionDBFileName

const char* GeoIPRegionDBFileName