Subject: | issues with small ipv6 netmasks < /24 |
Date: | Mon, 22 Apr 2013 22:10:39 +0200 |
To: | bug-Net-Subnet [...] rt.cpan.org |
From: | Wim Vandersmissen <Wim.Vandersmissen [...] icts.kuleuven.be> |
Hi,
I'm getting issues with small ipv6 netmasks not working correctly.
e.g.
use Net::Subnet;
@subnets=("2000::/3");
my $classifier = subnet_classifier(@subnets);
$x = $classifier->('2fff:01ff:0:c0::25:129');
print $x;
This will not match, although 2000::/3 goes from
2000:0000:0000:0000:0000:0000:0000:0000 -
3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
This is true for all netmasks < 24
e.g
@subnets=("2000::/23");
my $classifier = subnet_classifier(@subnets);
$x = $classifier->('2000:0100::1');
print $x;
This will not match although 2000::/23 goes from
2000:0000:0000:0000:0000:0000:0000:0000 -
2000:01ff:ffff:ffff:ffff:ffff:ffff:ffff
I'm running perl 5.16.0 latest version of Net::Subnet (1.02)
Thanks,
Wim