Skip Menu |
 

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

Report information
The Basics
Id: 123641
Status: new
Priority: 0/
Queue: Net-CIDR-Lite

People
Owner: Nobody in particular
Requestors: rendal33 [...] hotmail.com
Cc:
AdminCc:

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



Subject: Net::CIDR::Lite wrong summarization
Date: Thu, 16 Nov 2017 01:19:44 +0000
To: "bug-Net-CIDR-Lite [...] rt.cpan.org" <bug-Net-CIDR-Lite [...] rt.cpan.org>
From: Wieslaw Pucilowski <rendal33 [...] hotmail.com>
Hello, I just wanted to make sure if $cidr->list() a list of the merged CIDR addresses means the same as list of summarized addresses: $cidr = Net::CIDR::Lite->new $cidr->list() Returns a list of the merged CIDR addresses. Returns an array if called in list context, an array reference if not. $cidr->list() does not summarized CIDR correctly. 1. it works for ======List of subnets for summarization:====== 10.3.4.0/24 10.3.5.0/24 10.3.6.0/24 10.3.7.0/24 ======Summarized IP list:====== 10.3.4.0/22 2. but does not for ======List of subnets for summarization:====== 10.3.1.0/24 10.3.2.0/24 10.3.3.0/24 ======Summarized IP list:====== 10.3.1.0/24 10.3.2.0/23 it this case summarized subnet should be 10.3.0.0/22 in other words summarization works in the case where all subnets have the same MSB in the interesting octet in first case 3rd octet 00000100 00000101 00000110 00000111 00000100 - summarized 3rd octet - 4, mask /22 in the second case 00000001 00000010 00000011 000000 - summarized 3rd octet is 0, mask /22 regards Wieslaw Sent from Outlook<http://aka.ms/weboutlook>


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.