Lines Matching refs:databaseType
534 gi->databaseType = GEOIP_COUNTRY_EDITION;
540 silence = read(fno, &gi->databaseType, 1 );
541 if (gi->databaseType >= 106) {
543 gi->databaseType -= 105;
546 if (gi->databaseType == GEOIP_REGION_EDITION_REV0) {
550 } else if (gi->databaseType == GEOIP_REGION_EDITION_REV1) {
554 } else if (gi->databaseType == GEOIP_CITY_EDITION_REV0 ||
555 gi->databaseType == GEOIP_CITY_EDITION_REV1 ||
556 gi->databaseType == GEOIP_ORG_EDITION ||
557 gi->databaseType == GEOIP_ORG_EDITION_V6 ||
558 gi->databaseType == GEOIP_DOMAIN_EDITION ||
559 gi->databaseType == GEOIP_DOMAIN_EDITION_V6 ||
560 gi->databaseType == GEOIP_ISP_EDITION ||
561 gi->databaseType == GEOIP_ISP_EDITION_V6 ||
562 gi->databaseType == GEOIP_REGISTRAR_EDITION ||
563 gi->databaseType == GEOIP_REGISTRAR_EDITION_V6 ||
564 gi->databaseType == GEOIP_USERTYPE_EDITION ||
565 gi->databaseType == GEOIP_USERTYPE_EDITION_V6 ||
566 gi->databaseType == GEOIP_ASNUM_EDITION ||
567 gi->databaseType == GEOIP_ASNUM_EDITION_V6 ||
568 gi->databaseType == GEOIP_NETSPEED_EDITION_REV1 ||
569 gi->databaseType == GEOIP_NETSPEED_EDITION_REV1_V6 ||
570 gi->databaseType == GEOIP_LOCATIONA_EDITION ||
571 gi->databaseType == GEOIP_ACCURACYRADIUS_EDITION ||
572 gi->databaseType == GEOIP_ACCURACYRADIUS_EDITION_V6 ||
573 gi->databaseType == GEOIP_CITY_EDITION_REV0_V6 ||
574 gi->databaseType == GEOIP_CITY_EDITION_REV1_V6 ||
575 gi->databaseType == GEOIP_CITYCONF_EDITION ||
576 gi->databaseType == GEOIP_COUNTRYCONF_EDITION ||
577 gi->databaseType == GEOIP_REGIONCONF_EDITION ||
578 gi->databaseType == GEOIP_POSTALCONF_EDITION
592 if (gi->databaseType == GEOIP_ORG_EDITION ||
593 gi->databaseType == GEOIP_ORG_EDITION_V6 ||
594 gi->databaseType == GEOIP_DOMAIN_EDITION ||
595 gi->databaseType == GEOIP_DOMAIN_EDITION_V6 ||
596 gi->databaseType == GEOIP_ISP_EDITION ||
597 gi->databaseType == GEOIP_ISP_EDITION_V6 )
605 if (gi->databaseType == GEOIP_COUNTRY_EDITION ||
606 gi->databaseType == GEOIP_PROXY_EDITION ||
607 gi->databaseType == GEOIP_NETSPEED_EDITION ||
608 gi->databaseType == GEOIP_COUNTRY_EDITION_V6 ) {
612 else if ( gi->databaseType == GEOIP_LARGE_COUNTRY_EDITION ||
613 gi->databaseType == GEOIP_LARGE_COUNTRY_EDITION_V6 ) {
724 idx_size = _database_has_content(gi->databaseType) ? gi->databaseSegments[0] * (long)gi->record_length * 2 : buf.st_size;
956 int database_type = gi->databaseType ;
1054 idx_size = _database_has_content(gi->databaseType) ? gi->databaseSegments[0] * (long)gi->record_length * 2 : buf.st_size;
1231 if (gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION && gi->databaseType != GEOIP_COUNTRY_EDITION && gi->databaseType != GEOIP_PROXY_EDITION && gi->databaseType != GEOIP_NETSPEED_EDITION) {
1232 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_COUNTRY_EDITION));
1247 if (gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION_V6 && gi->databaseType != GEOIP_COUNTRY_EDITION_V6) {
1248 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_COUNTRY_EDITION_V6));
1354 if (gi->databaseType != GEOIP_COUNTRY_EDITION_V6
1355 && gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION_V6) {
1357 get_db_description(gi->databaseType),
1373 if (gi->databaseType != GEOIP_COUNTRY_EDITION &&
1374 gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION &&
1375 gi->databaseType != GEOIP_PROXY_EDITION &&
1376 gi->databaseType != GEOIP_NETSPEED_EDITION) {
1378 get_db_description(gi->databaseType),
1389 if (gi->databaseType != GEOIP_COUNTRY_EDITION_V6
1390 && gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION_V6) {
1392 get_db_description(gi->databaseType),
1405 if (gi->databaseType != GEOIP_COUNTRY_EDITION &&
1406 gi->databaseType != GEOIP_LARGE_COUNTRY_EDITION &&
1407 gi->databaseType != GEOIP_PROXY_EDITION &&
1408 gi->databaseType != GEOIP_NETSPEED_EDITION) {
1410 get_db_description(gi->databaseType),
1477 if (gi->databaseType == GEOIP_REGION_EDITION_REV0) {
1488 } else if (gi->databaseType == GEOIP_REGION_EDITION_REV1) {
1522 if (gi->databaseType == GEOIP_REGION_EDITION_REV0) {
1533 } else if (gi->databaseType == GEOIP_REGION_EDITION_REV1) {
1585 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1586 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1587 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_REGION_EDITION_REV1));
1599 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1600 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1601 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_REGION_EDITION_REV1));
1613 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1614 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1615 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_REGION_EDITION_REV1));
1628 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1629 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1630 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_REGION_EDITION_REV1));
1641 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1642 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1643 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_REGION_EDITION_REV1));
1650 if (gi->databaseType != GEOIP_REGION_EDITION_REV0 &&
1651 gi->databaseType != GEOIP_REGION_EDITION_REV1) {
1652 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType),get_db_description(GEOIP_REGION_EDITION_REV1));
1672 if (gi->databaseType != GEOIP_ORG_EDITION &&
1673 gi->databaseType != GEOIP_ISP_EDITION &&
1674 gi->databaseType != GEOIP_DOMAIN_EDITION &&
1675 gi->databaseType != GEOIP_ASNUM_EDITION &&
1676 gi->databaseType != GEOIP_ACCURACYRADIUS_EDITION &&
1677 gi->databaseType != GEOIP_NETSPEED_EDITION_REV1 &&
1678 gi->databaseType != GEOIP_USERTYPE_EDITION &&
1679 gi->databaseType != GEOIP_REGISTRAR_EDITION &&
1680 gi->databaseType != GEOIP_LOCATIONA_EDITION &&
1681 gi->databaseType != GEOIP_CITYCONF_EDITION &&
1682 gi->databaseType != GEOIP_COUNTRYCONF_EDITION &&
1683 gi->databaseType != GEOIP_REGIONCONF_EDITION &&
1684 gi->databaseType != GEOIP_POSTALCONF_EDITION
1686 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_ORG_EDITION));
1728 gi->databaseType != GEOIP_ORG_EDITION_V6 &&
1729 gi->databaseType != GEOIP_ISP_EDITION_V6 &&
1730 gi->databaseType != GEOIP_DOMAIN_EDITION_V6 &&
1731 gi->databaseType != GEOIP_ASNUM_EDITION_V6 &&
1732 gi->databaseType != GEOIP_ACCURACYRADIUS_EDITION_V6 &&
1733 gi->databaseType != GEOIP_NETSPEED_EDITION_REV1_V6 &&
1734 gi->databaseType != GEOIP_USERTYPE_EDITION_V6 &&
1735 gi->databaseType != GEOIP_REGISTRAR_EDITION_V6 &&
1736 gi->databaseType != GEOIP_LOCATIONA_EDITION_V6
1738 printf("Invalid database type %s, expected %s\n", get_db_description(gi->databaseType), get_db_description(GEOIP_ORG_EDITION));
1901 return gi->databaseType;