Home | History | Annotate | Download | only in dns

Lines Matching refs:geoip

36 #include <dns/geoip.h>
48 * This structure preserves state from the previous GeoIP lookup,
57 * If the next geoip ACL lookup is for the same database and from the
60 * geoip ACLs: for example, when there are multiple views with
66 * searching in more than one GeoIP database.)
111 fix_subtype(const dns_geoip_databases_t *geoip, dns_geoip_subtype_t subtype) {
116 if (geoip->city != NULL) {
118 } else if (geoip->country != NULL) {
123 if (geoip->city != NULL) {
125 } else if (geoip->country != NULL) {
130 if (geoip->city != NULL) {
132 } else if (geoip->country != NULL) {
137 if (geoip->city != NULL) {
139 } else if (geoip->country != NULL) {
144 if (geoip->city != NULL) {
149 if (geoip->city != NULL) {
160 geoip2_database(const dns_geoip_databases_t *geoip,
167 return (geoip->country);
180 return (geoip->city);
183 return (geoip->isp);
187 return (geoip->as);
190 return (geoip->domain);
228 const dns_geoip_databases_t *geoip,
239 REQUIRE(geoip != NULL);
241 subtype = fix_subtype(geoip, elt->subtype);
242 db = geoip2_database(geoip, subtype);