summaryrefslogtreecommitdiff
path: root/geoip.c
diff options
context:
space:
mode:
Diffstat (limited to 'geoip.c')
-rw-r--r--geoip.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/geoip.c b/geoip.c
index 433dbbe..8d879a6 100644
--- a/geoip.c
+++ b/geoip.c
@@ -33,37 +33,37 @@ struct file {
static const struct file files[] = {
[GEOIP_CITY_EDITION_REV1] = {
.desc = "City IPv4",
- .local = PREFIX_STRING "/etc/netsniff-ng/city4.dat",
+ .local = ETCDIRE_STRING "/city4.dat",
.remote = "/GeoLiteCity.dat.gz",
.possible_prefix = PRE,
},
[GEOIP_CITY_EDITION_REV1_V6] = {
.desc = "City IPv6",
- .local = PREFIX_STRING "/etc/netsniff-ng/city6.dat",
+ .local = ETCDIRE_STRING "/city6.dat",
.remote = "/GeoLiteCityv6.dat.gz",
.possible_prefix = PRE "/GeoLiteCityv6-beta",
},
[GEOIP_COUNTRY_EDITION] = {
.desc = "Country IPv4",
- .local = PREFIX_STRING "/etc/netsniff-ng/country4.dat",
+ .local = ETCDIRE_STRING "/country4.dat",
.remote = "/GeoIP.dat.gz",
.possible_prefix = PRE "/GeoLiteCountry",
},
[GEOIP_COUNTRY_EDITION_V6] = {
.desc = "Country IPv6",
- .local = PREFIX_STRING "/etc/netsniff-ng/country6.dat",
+ .local = ETCDIRE_STRING "/country6.dat",
.remote = "/GeoIPv6.dat.gz",
.possible_prefix = PRE,
},
[GEOIP_ASNUM_EDITION] = {
.desc = "AS Numbers IPv4",
- .local = PREFIX_STRING "/etc/netsniff-ng/asname4.dat",
+ .local = ETCDIRE_STRING "/asname4.dat",
.remote = "/GeoIPASNum.dat.gz",
.possible_prefix = PRE "/asnum",
},
[GEOIP_ASNUM_EDITION_V6] = {
.desc = "AS Numbers IPv6",
- .local = PREFIX_STRING "/etc/netsniff-ng/asname6.dat",
+ .local = ETCDIRE_STRING "/asname6.dat",
.remote = "/GeoIPASNumv6.dat.gz",
.possible_prefix = PRE "/asnum",
},
@@ -526,7 +526,7 @@ static void init_mirrors(void)
FILE *fp;
char buff[256];
- fp = fopen(PREFIX_STRING "/etc/netsniff-ng/geoip.conf", "r");
+ fp = fopen(ETCDIRE_STRING "/geoip.conf", "r");
if (!fp)
panic("Cannot open geoip.conf!\n");