Skip Menu |
 

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

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

People
Owner: cpan [...] bat.ru
Requestors: robert [...] spitzenpfeil.org
Cc:
AdminCc:

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

Attachments


MIME-Version: 1.0
X-DF-Sender: MDIyMDcz
X-Spam-Status: No, score=-2.601 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <55D3173A.2050001 [...] spitzenpfeil.org>
Reply-To: robert [...] spitzenpfeil.org
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.601
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 67880240331 for <cpan-bug+Net-IP [...] hipster.bestpractical.com>; Tue, 18 Aug 2015 07:36:35 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmuntXxAu-Jm for <cpan-bug+Net-IP [...] hipster.bestpractical.com>; Tue, 18 Aug 2015 07:36:33 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2CF3E240266 for <bug-Net-IP [...] rt.cpan.org>; Tue, 18 Aug 2015 07:36:32 -0400 (EDT)
Received: (qmail 11525 invoked by alias); 18 Aug 2015 11:36:22 -0000
Received: from smtprelay06.ispgateway.de (HELO smtprelay06.ispgateway.de) (80.67.31.95) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 18 Aug 2015 04:36:14 -0700
Received: from [95.117.141.4] (helo=[192.168.1.2]) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from <robert [...] spitzenpfeil.org>) id 1ZRf5b-0005wW-Jf for bug-Net-IP [...] rt.cpan.org; Tue, 18 Aug 2015 13:29:59 +0200
Delivered-To: cpan-bug+Net-IP [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
Subject: ipcount not working properly
Return-Path: <robert [...] spitzenpfeil.org>
X-RT-Mail-Extension: net-ip
X-Original-To: cpan-bug+Net-IP [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 18 Aug 2015 13:30:02 +0200
X-Spam-Level:
To: bug-Net-IP [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Robert Spitzenpfeil <robert [...] spitzenpfeil.org>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 533
Download (untitled) / with headers
text/plain 533b
The issue + fix is described here in great detail: http://www.technicalmisery.com/2008/12/ipcount-handy-tool-for-ip-address.html My data: * openSUSE 13.2: perl-Net-IP-1.26-4.1.3.x86_64 * This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux-thread-multi Name: perl-Net-IP Url: http://cpan.org/modules/by-module/Net/ Provides: perl_Net-IP Obsoletes: perl_Net-IP Summary: allow easy manipulation of IPv4 and IPv6 addresses License: Artistic-1.0 Group: Development/Libraries/Perl Version: 1.26 Release: 4.1.3
MIME-Version: 1.0
In-Reply-To: <55D3173A.2050001 [...] spitzenpfeil.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: API
References: <55D3173A.2050001 [...] spitzenpfeil.org>
Content-Type: multipart/mixed; boundary="----------=_1442417072-29378-2"
Message-ID: <rt-4.0.18-29378-1442417072-163.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-29378-1442417072-1562.106506-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
From: vcizek [...] suse.cz
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 244
Download (untitled) / with headers
text/plain 244b
On Tue Aug 18 07:36:36 2015, robert@spitzenpfeil.org wrote: Show quoted text
> The issue + fix is described here in great detail: > > http://www.technicalmisery.com/2008/12/ipcount-handy-tool-for-ip- > address.html
Attaching the patch extracted from the blog.
MIME-Version: 1.0
Subject: ipcount-invalid_chars_in_IP.patch
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Type: text/x-diff; name="ipcount-invalid_chars_in_IP.patch"
Content-Disposition: inline; filename="ipcount-invalid_chars_in_IP.patch"
Content-Transfer-Encoding: binary
Content-Length: 924
Index: Net-IP-1.26/ipcount =================================================================== --- Net-IP-1.26.orig/ipcount 2005-10-18 11:59:52.000000000 +0200 +++ Net-IP-1.26/ipcount 2015-09-16 13:50:21.639082216 +0200 @@ -51,6 +51,7 @@ getopts ('rd:',\%opts); scalar (@ARGV) < 1 and usage(); my $arg = join '',@ARGV; $arg =~ s/\s+//g; +$arg =~ s/\+/ \+ /g; my $ip = new Net::IP($arg) or die ("Cannot create IP object $arg: ".Error()); @@ -77,7 +78,7 @@ if ($opts{d}) while ($current->bincomp ('lt', $last)) { - $new_ip->set($current->last_ip.'+'.$size) or die (Error()); + $new_ip->set($current->last_ip.' + '.$size) or die (Error()); print $new_ip->print,"\n"; if ($opts{r}) @@ -85,7 +86,7 @@ if ($opts{d}) print $new_ip->reverse_ip,"\n"; } - $current->set($new_ip->last_ip .'+ 1') or die (Error()); + $current->set($new_ip->last_ip .' + 1') or die (Error()); $count++; }
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-29378-1442417072-163.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <55D3173A.2050001 [...] spitzenpfeil.org> <rt-4.0.18-29378-1442417072-163.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-8886-1442871694-562.106506-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 98
Fix isn't really a proper one, but gave a hint where the problem is. Should be available in 1.27.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.