geoip.c File Reference

#include <config.h>
#include <isc/util.h>
#include <isc/mem.h>
#include <isc/once.h>
#include <isc/string.h>
#include <dns/acl.h>
#include <dns/geoip.h>
#include <isc/thread.h>
#include <math.h>
#include <netinet/in.h>
#include <dns/log.h>

Go to the source code of this file.

Defines

#define DB46(addr, geoip, name)   ((addr->family == AF_INET) ? (geoip->name##_v4) : (geoip->name##_v6))

Functions

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)


Detailed Description

Definition in file geoip.c.


Define Documentation

#define DB46 ( addr,
geoip,
name   )     ((addr->family == AF_INET) ? (geoip->name##_v4) : (geoip->name##_v6))

Definition at line 592 of file geoip.c.


Function Documentation

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:08 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha