-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build GeoIPISP legacy database #44
Comments
@malakudi Atleast you need to change STANDARD_RECORD_LENGTH -> ORG_RECORD_LENGTH (edit: sorry meant ORG) And possibly this (not sure if \0\0\0 -> \0 change was required for isp/org but try it) |
GEO_RECORD_LENGTH is not defined in GeoIP.h and of course at pygeoip_const.py. Maybe you mean ORG_RECORD_LENGTH? |
It worked with reclen = ORG_RECORD_LENGTH |
Database seems correct with both \0\0\0 and \0, at least when checked with geoiplookup utility. Same for ASNum db. Why \0\0\0 was needed? |
OK, I reply to myself, when you do not use \0\0\0 , the version string (shown in geoiplookup with -v) is empty. |
Trying to build a GeoIPISP legacy database. I copied code from the ASN related functions (ASNRadixTree etc) but resulting file is not valid. Field of input csv called isp and parsed correctly but output file is wrong. What am I missing? Can you help?
Here is my patch so far
The text was updated successfully, but these errors were encountered: