Package: geoip
Severity: wishlist
Tags: patch
The ASNum database is available for download from
http://www.maxmind.com/app/asnum. Attached simple patch allows geoiplookup to
make use of it.
Greetings,
Piotr
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.30.1-orbiter.x86-64.1 (PREEMPT)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ru geoip-1.4.6.dfsg/apps/geoiplookup.c geoip-1.4.6.dfsg.new/apps/geoiplookup.c
--- geoip-1.4.6.dfsg/apps/geoiplookup.c 2009-02-24 17:03:23.000000000 +0100
+++ geoip-1.4.6.dfsg.new/apps/geoiplookup.c 2009-03-21 15:31:27.627933928 +0100
@@ -189,7 +189,7 @@
gir->latitude, gir->longitude, gir->metro_code, gir->area_code);
}
}
- else if (GEOIP_ORG_EDITION == i || GEOIP_ISP_EDITION == i) {
+ else if (GEOIP_ORG_EDITION == i || GEOIP_ISP_EDITION == i || GEOIP_ASNUM_EDITION == i) {
org = GeoIP_org_by_ipnum(gi, ipnum);
if (org == NULL) {
printf("%s: IP Address not found\n", GeoIPDBDescription[i]);