Quote:
Originally Posted by Tech Manager
I am looking for a script/algorithm that I can interface with a database to create consolidated/aggregated IP blocks.
|
- Is there a unique formulae?
- I am not an expert. A question I have asked myself is if there is an overlap for different countries?
Quote:
Originally Posted by Tech Manager
Basically what we want to do is to pull continguous IP blocks from the database, aggregate them and present the results.
The data in the tables actually appears in decimal ( the right columns) as opposed to dotted decimal.
|
You don't imply by that that it is simple addition (modulo a number)?
Quote:
Originally Posted by Tech Manager
As you can see, this significantly reduces the output. The end result is the option of shorter lists and less memory/cpu required to run them on respective firewalls.
|
So to repeat in other words, you are in a sense looking for least common denominators (like of prime numbers)?
Quote:
Originally Posted by Tech Manager
I am in need of a PHP script that can be modified as needed to produce similar results. If you are aware of such a script please let me know. Perhaps we could work out a suitable trade.
|
And googling by different KW's does not give relevant hits?
The reason I mentioned the two above sites is that they are experts on IP-related problems, so they may know of such a script. DnsStuff has a forum. Gary Keith may be contacted by a simple question.