[Date Prev][Date Next]
Re: schema for IP subnets (was: documents or examples on defining / adding a new syntax?)
Michael Ströder writes:
>Hallvard Breien Furuseth wrote:
>> When we needed to index IP subnet ranges, we defined two single-valued
>> attributes with max and min value stored as single decimal integers.
> Interesting. The Integer value in your case covers the whole address (32 bits
> for IPv4 and 128 bits for IPv6)?
No, I should have said IPv4. Our IPv6 subnets will hopefully have just a few
simple formats so a client which wants to find the subnet of an address can
just generate one or two possibilities and look it up with equality match.
> What does the whole schema look like?
attributeTypes: ( 188.8.131.52.4.1.2428.10000.971.358184.108.40.206
DESC 'Lowest IP address in an address range, stored as an integer'
attributeTypes: ( 220.127.116.11.4.1.2428.10000.971.35818.104.22.168
DESC 'Highest IP address in an address range, stored as an integer'
objectClasses: ( 22.214.171.124.4.1.2428.10000.971.35854.2.106 NAME 'uioIpNetwork'
DESC 'Information about IP networks'
MAY ( uioIpAddressRangeStart $ uioIpAddressRangeEnd ) )