Subject: | Net::CIDR fails on valid IPv6 addr/mask combination |
ifconfig -a
inet6 addr: fc00:10:137:242::53/64 Scope:Global
Yet if I plug this in to net::cidr, we get:
Invalid netmask at /opt/zimbra/common/lib/perl5/Net/CIDR.pm line 546, <$fh> line 9.
Specifically:
IP: fc00:10:137:242::53
Mask: 64
Invalid netmask at /opt/zimbra/common/lib/perl5/Net/CIDR.pm line 546, <$fh> line 9.
Code is:
print "IP: $ip\n";
print "Mask: $mask\n";
my $cidr = Net::CIDR::addrandmask2cidr($ip, $mask);
print "CIDR: $cidr\n";