Skip Menu |

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

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

Owner: cpan [...]
Requestors: kmaejima [...]

Bug Information
Severity: Normal
Broken in:
  • 1.20
  • 1.24
  • 1.25
Fixed in: (no value)

Subject: intip method return nothing if
Download (untitled) / with headers
text/plain 456b
intip() method should return a Math::BigInt object. But the method returns nothing if the object's IP address is Internally intip() tests if the result Math::BigInt object is TRUE before returning it. But the test fails against Math::BigInt(0). Attached file is a patch to fix this problem. Note that iptab fails as of Net::IP 1.25, because size() method used in the script is reimplemented with the broken intip() method. -- Kazuyuki Maejima
Subject: intip-0.patch
Download intip-0.patch
text/x-diff 332b
--- Net-IP-1.25/ 2006-05-23 01:46:40.000000000 +0900 +++ Net-IP-1.25/ 2006-07-04 01:54:55.000000000 +0900 @@ -410,7 +410,7 @@ my $int = ip_bintoint($self->binip()); - if (!$int) { + if (ref($int) ne "Math::BigInt") { $self->{error} = $ERROR; $self->{errno} = $ERRNO; return;
This ticket is a duplicate of #60439. Thanks for the report!

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to