Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2011 12:02:03 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        John Levine <johnl@iecc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Merging CIDR lists
Message-ID:  <alpine.BSF.2.00.1104071200500.42152@wonkity.com>
In-Reply-To: <20110407165715.90743.qmail@joyce.lan>
References:  <20110407165715.90743.qmail@joyce.lan>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 7 Apr 2011, John Levine wrote:
>
> Using Net::CIDR or Net::CIDR::Lite, both of which are in the ports,
> this script will do it:
>
> ----- snip -----
> use Net::CIDR;
>
> print join(' ',Net::CIDR::cidradd(@ARGV)) . "\n";
> ----- snip -----

Perfect!  I looked at Net::CIDR, but was put off by the couple of 
sections that say they do not merge overlapping sections.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1104071200500.42152>