Home | History | Annotate | Download | only in dns

Lines Matching refs:geoip

35 #include <dns/geoip.h>
41 static dns_geoip_databases_t geoip;
54 /* Use databases from the geoip system test */
85 geoip.country = open_geoip2(dir, "GeoIP2-Country.mmdb", &geoip_country);
86 geoip.city = open_geoip2(dir, "GeoIP2-City.mmdb", &geoip_city);
87 geoip.as = open_geoip2(dir, "GeoLite2-ASN.mmdb", &geoip_as);
88 geoip.isp = open_geoip2(dir, "GeoIP2-ISP.mmdb", &geoip_isp);
89 geoip.domain = open_geoip2(dir, "GeoIP2-Domain.mmdb", &geoip_domain);
117 db = geoip2_database(&geoip, fix_subtype(&geoip, subtype));
185 return dns_geoip_match(&na, &geoip, &elt);
203 return dns_geoip_match(&na, &geoip, &elt);
206 /* GeoIP country matching */
212 if (geoip.country == NULL) {
231 /* GeoIP country (ipv6) matching */
237 if (geoip.country == NULL) {
250 /* GeoIP city (ipv4) matching */
256 if (geoip.city == NULL) {
287 /* GeoIP city (ipv6) matching */
293 if (geoip.city == NULL) {
327 /* GeoIP asnum matching */
333 if (geoip.as == NULL) {
341 /* GeoIP isp matching */
347 if (geoip.isp == NULL) {
356 /* GeoIP org matching */
362 if (geoip.as == NULL) {
371 /* GeoIP domain matching */
377 if (geoip.domain == NULL) {