Skip Menu |

This queue is for tickets about the Net-IP CPAN distribution.

Report information
The Basics
Id: 98526
Status: rejected
Worked: 10 min
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: nechami827 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: report a new bug
Date: Tue, 2 Sep 2014 13:09:11 +0300
To: bug-Net-IP [...] rt.cpan.org
From: נחמי אופק <nechami827 [...] gmail.com>
Hi, This line is in my code: my $ipv6_addr = new Net::IP (2001:db8:85a3:42:1000:8a2e:370:22/125); However, $ipv6_addr get a undef value. This is a valid IPv6 address, at least according to this site: https://www.ultratools.com/tools/ipv6CIDRToRangeResult.
Hi! On Tue Sep 02 06:09:21 2014, nechami827@gmail.com wrote: Show quoted text
> Hi, > > This line is in my code: > my $ipv6_addr = new Net::IP (2001:db8:85a3:42:1000:8a2e:370:22/125); > > However, $ipv6_addr get a undef value. > > This is a valid IPv6 address, at least according to this site: > https://www.ultratools.com/tools/ipv6CIDRToRangeResult.
Well, the referenced tool is more permissive than Net::IP itself. The CORRECT range should be: 2001:db8:85a3:42:1000:8a2e:370:20/125. It's a good question, should it accept ranges like given one, adjusting beginning and end to the prefix. ATM such behaviour contradicts documentation.