geoip: put IPv4 geoip data into its own map

This commit is contained in:
Jan Engelhardt
2010-12-19 00:30:10 +01:00
parent 4d547c2bfc
commit 25bf680ead
2 changed files with 12 additions and 9 deletions

View File

@@ -58,9 +58,9 @@ static struct geoip_subnet *geoip_get_subnets(const char *code, uint32_t *count)
/* Use simple integer vector files */
#if __BYTE_ORDER == _BIG_ENDIAN
snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/BE/%s.iv0", code);
snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/BE/%s.iv4", code);
#else
snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/LE/%s.iv0", code);
snprintf(buf, sizeof(buf), GEOIP_DB_DIR "/LE/%s.iv4", code);
#endif
if ((fd = open(buf, O_RDONLY)) < 0) {