hackers  

[freeipdb-hackers] ipdbDoctor

Anthony DeRobertis
Tue, 16 Sep 2003 09:41:20 -0700

Just wanted to let everyone know that I'm writing a new database consistency checker / repairer for freeipdb. I'm doing this because mine seems to have become quite inconsistent, and gone into self-destruct mode...

It already finds many errors that the check script doesn't even think about. A partial list of what I'm checking for:

        o block is on a bit boundry
        o bits are in range (for the given address type)
        o children agree with parent. (childl/r vs. parent col)
        o check for blocks that appear to be ipv6 in ipv4 region or vice versa
        o check to make sure the region a block is in exists
        o check that parents have 0 or 2 children
        o check that children have appropriate # of bits
        o check that children have appropriate blocks
        o check that no node is the child of more than 1 parent
        o check that no node is the child of 0 parents

Any suggestions for more?

I'll be contributing the (rather long) perl script. Currently, its quite slow (makes thousands of db queries...) but that can be fixed.

PS: The mailing list seems to allow posting to subscribers only... arg. Annoying. Third attempt to send using the right email address. Double-arg!


  • [freeipdb-hackers] ipdbDoctor Anthony DeRobertis