Skip Menu |

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

Report information
The Basics
Id: 58815
Status: resolved
Priority: 0/
Queue: Net-CIDR

People
Owner: Nobody in particular
Requestors: ssm [...] fnord.no
Cc:
AdminCc:

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



Subject: Net::CIDR::cidrvalidate does not validate CIDR
Date: Fri, 25 Jun 2010 10:25:59 +0200
To: bug-Net-CIDR [...] rt.cpan.org
From: Stig Sandbeck Mathisen <ssm [...] fnord.no>
Hello, The function Net::CIDR::cidrvalidate does not, as one would assume, validate a CIDR. It only validates IP addresses. It would be very nice if cidrvalidate(), or a new function, could validate a CIDR. If you change cidrvalidate() to actually validate a CIDR, one could, to keep backwards functionality, assume that a IPv4 address with no /net appended gets a /32, and a IPv6 address gets a /128 before validation. Versions: Net::CIDR 0.13 perl 5.10 -- Stig Sandbeck Mathisen Trust the Computer, the Computer is your Friend
0.14