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> |
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