Skip Menu |

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

Report information
The Basics
Id: 25872
Status: resolved
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: fugich [...] gmail.com
Cc:
AdminCc:

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



Subject: iptab problem and solution
Date: Tue, 27 Mar 2007 15:58:58 +0100
To: bug-Net-IP [...] rt.cpan.org
From: fugich <fugich [...] gmail.com>
Download NETpatch
application/octet-stream 322b

Message body not shown because it is not plain text.

Hi iptab as of Net-IP 1.25 does not work on a number of machines that I have, the problem has been tracked down the IP->size() function. This fails when supplying the ip 0.0.0.0. After discussions we believe that this is a valid ip so the following solution is thought to be the right way to go about things, to put it in line with the old version. The function which is the root cause of the problem is the IP->intip() function. This errors as it checks (!$int) (line 412), we propose that the line should be replaced with ($int eq "") as in the attached patch. This means that if the ip 0.0.0.0 is used 0 is returned rather than an error occurring. fugich
This is fixed in 1.27. Thanks for the report!