Re: Merging CIDR lists

2011-04-07 Thread Warren Block

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.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Merging CIDR lists

2011-04-07 Thread John Levine
In article  you write:
>Does anyone have a convenient way to merge a list of CIDR netblocks?

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 -
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Merging CIDR lists

2011-04-07 Thread Warren Block

Does anyone have a convenient way to merge a list of CIDR netblocks?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"