Skip Menu |
 

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

Report information
The Basics
Id: 84792
Status: resolved
Priority: 0/
Queue: Net-Subnet

People
Owner: Nobody in particular
Requestors: Wim.Vandersmissen [...] icts.kuleuven.be
Cc:
AdminCc:

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



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>
Download (untitled) / with headers
text/plain 723b
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
Download (untitled) / with headers
text/plain 246b
The new release (1.03) probably fixes this issue, although in a slightly different way. I hadn't noticed that there were RT tickets until someone told me AFTER I released 1.03. There was a problem with IPv6 netmasks that are not a multiple of 8.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.