Subject: | Wrong IPv6 Compression |
According to rfc5952 Section-4.2.2 (see
https://tools.ietf.org/html/rfc5952#section-4.2.2) there seams to be a
bug in _compress_ipv6 Method of Net::CIDR::Set::IPv6.pm.
Howto reproduce the bug:
perl -e 'use Net::CIDR::Set; use Data::Dumper; my $set =
Net::CIDR::Set->new; $set->add("1:2:3:4:5:6:7:0") ; print
Dumper($set->as_cidr_array);'
Output:
$VAR1 = '0001:2:3:4:5:6:7::';
Correct:
$VAR1 = '0001:2:3:4:5:6:7:0';
Possible bugfix attached.
Subject: | correct_ipv6_compression |
Message body not shown because it is not plain text.