Merging CIDR lists

Warren Block wblock at wonkity.com
Thu Apr 7 18:02:04 UTC 2011


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.


More information about the freebsd-questions mailing list