2009/12/14 Markus Roberts <[email protected]>:
> This removes some of the IPv4 centricism from authstore's handling
> of IP addresses. It isn't full IPv6 support (and doesn't even fully
> handle all the cases within its limited scope, as ruby's IPAddr
> library does not work with hybrid addresses), but it should simplify
> adding IPv6 support when the time comes.
Are you sure about that?
embedded = IPAddr.new("::192.168.0.1")
=> #<IPAddr:
IPv6:0000:0000:0000:0000:0000:0000:c0a8:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
norm = IPAddr.new("192.168.0.1")
=> #<IPAddr: IPv4:192.168.0.1/255.255.255.255>
norm.ipv4_mapped()
=> #<IPAddr:
IPv6:0000:0000:0000:0000:0000:ffff:c0a8:0001/0000:0000:0000:0000:0000:0000:ffff:ffff>
Now there are mask issues there which mean comparison isn't true in
this case but adding internal regex based ipv6 parsing feels wrong.
What explicit cases does ipaddr not work for?
Paul
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.