0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2013, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Huntinit_geoip_db(GeoIP **dbp, GeoIPDBTypes edition, GeoIPDBTypes fallback,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt "GeoIP %s (type %d) DB not available", name, edition);
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt "initializing GeoIP %s (type %d) DB", name, edition);
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt "failed to initialize GeoIP %s (type %d) DB%s",
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt ? "geoip matches using this database will fail" : "");
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt#endif /* HAVE_GEOIP */
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->country_v4, GEOIP_COUNTRY_EDITION, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->country_v6, GEOIP_COUNTRY_EDITION_V6, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->city_v4, GEOIP_CITY_EDITION_REV1,
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt#if defined(HAVE_GEOIP_V6) && defined(HAVE_GEOIP_CITY_V6)
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->city_v6, GEOIP_CITY_EDITION_REV1_V6,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt GEOIP_CITY_EDITION_REV0_V6, method, "City (IPv6)");
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->region, GEOIP_REGION_EDITION_REV1,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->isp, GEOIP_ISP_EDITION, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->org, GEOIP_ORG_EDITION, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->as, GEOIP_ASNUM_EDITION, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->domain, GEOIP_DOMAIN_EDITION, 0,
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt init_geoip_db(&ns_g_geoip->netspeed, GEOIP_NETSPEED_EDITION, 0,
501941f0b6cce74c2ff75b10aff3f230d5d37e4cEvan Hunt#endif /* HAVE_GEOIP */