geoip.h File Reference

#include <isc/lang.h>
#include <isc/magic.h>
#include <isc/netaddr.h>
#include <isc/refcount.h>
#include <dns/name.h>
#include <dns/types.h>
#include <dns/iptable.h>

Go to the source code of this file.

Data Structures

struct  dns_geoip_elem
struct  dns_geoip_databases

Defines

#define DNS_GEOIP_H   1

Typedefs

typedef void GeoIP
typedef struct dns_geoip_elem dns_geoip_elem_t
typedef struct dns_geoip_databases dns_geoip_databases_t

Enumerations

enum  dns_geoip_subtype_t {
  dns_geoip_countrycode, dns_geoip_countrycode3, dns_geoip_countryname, dns_geoip_region,
  dns_geoip_regionname, dns_geoip_country_code, dns_geoip_country_code3, dns_geoip_country_name,
  dns_geoip_region_countrycode, dns_geoip_region_code, dns_geoip_region_name, dns_geoip_city_countrycode,
  dns_geoip_city_countrycode3, dns_geoip_city_countryname, dns_geoip_city_region, dns_geoip_city_regionname,
  dns_geoip_city_name, dns_geoip_city_postalcode, dns_geoip_city_metrocode, dns_geoip_city_areacode,
  dns_geoip_city_continentcode, dns_geoip_city_timezonecode, dns_geoip_isp_name, dns_geoip_org_name,
  dns_geoip_as_asnum, dns_geoip_domain_name, dns_geoip_netspeed_id
}

Functions

ISC_LANG_BEGINDECLS isc_boolean_t dns_geoip_match (const isc_netaddr_t *reqaddr, isc_uint8_t *scope, const dns_geoip_databases_t *geoip, const dns_geoip_elem_t *elt)
void dns_geoip_shutdown (void)


Define Documentation

#define DNS_GEOIP_H   1

Definition at line 18 of file geoip.h.


Typedef Documentation

typedef void GeoIP

Definition at line 45 of file geoip.h.

typedef struct dns_geoip_elem dns_geoip_elem_t

typedef struct dns_geoip_databases dns_geoip_databases_t


Enumeration Type Documentation

enum dns_geoip_subtype_t

Enumerator:
dns_geoip_countrycode 
dns_geoip_countrycode3 
dns_geoip_countryname 
dns_geoip_region 
dns_geoip_regionname 
dns_geoip_country_code 
dns_geoip_country_code3 
dns_geoip_country_name 
dns_geoip_region_countrycode 
dns_geoip_region_code 
dns_geoip_region_name 
dns_geoip_city_countrycode 
dns_geoip_city_countrycode3 
dns_geoip_city_countryname 
dns_geoip_city_region 
dns_geoip_city_regionname 
dns_geoip_city_name 
dns_geoip_city_postalcode 
dns_geoip_city_metrocode 
dns_geoip_city_areacode 
dns_geoip_city_continentcode 
dns_geoip_city_timezonecode 
dns_geoip_isp_name 
dns_geoip_org_name 
dns_geoip_as_asnum 
dns_geoip_domain_name 
dns_geoip_netspeed_id 

Definition at line 52 of file geoip.h.


Function Documentation

ISC_LANG_BEGINDECLS isc_boolean_t dns_geoip_match ( const isc_netaddr_t reqaddr,
isc_uint8_t scope,
const dns_geoip_databases_t geoip,
const dns_geoip_elem_t elt 
)

Definition at line 646 of file geoip.c.

Referenced by dns_aclelement_match2().

void dns_geoip_shutdown ( void   ) 

Definition at line 863 of file geoip.c.

Referenced by shutdown_server().


Generated on Tue Apr 28 17:41:09 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha