User:Jules/listipsfromblocks

From XPUB & Lens-Based wiki
< User:Jules
Revision as of 16:20, 11 February 2016 by Jules (talk | contribs) (Created page with "There are 2 961 041 blocks in my database.<br /> Typically, a geolocation database entry is composed of a pair of values, corresponding to the integer representation of the m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are 2 961 041 blocks in my database.

Typically, a geolocation database entry is composed of a pair of values, corresponding to the integer representation of the minimum and maximum address of a block. Each block is then associated with several information helpful for localization: country code, city, latitude and longitude, and Zip code.

Most of the IP blocks from Maxmind correspond to subnets smaller than /25. In essence, Maxmind entries substantially differ from BGP (https://en.wikipedia.org/wiki/Border_Gateway_Protocol) and official allocations by more than 50% from a blocks size perspective.

The ids follow each other in order, therefore i need to look for ip groups between the entry found and the one that's next in the database