From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 19:54:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D66201065673 for ; Fri, 1 Aug 2008 19:54:24 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 7C6A98FC15 for ; Fri, 1 Aug 2008 19:54:24 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.2/8.14.2) with ESMTP id m71JsKZ8016846; Fri, 1 Aug 2008 13:54:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.2/8.14.2/Submit) with ESMTP id m71JsJUk016843; Fri, 1 Aug 2008 13:54:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 1 Aug 2008 13:54:19 -0600 (MDT) From: Warren Block To: Mark Wilson In-Reply-To: <8CAC1FE1B91EC30-116C-2BF2@MBLK-M10.sysops.aol.com> Message-ID: References: <8CAC1FE1B91EC30-116C-2BF2@MBLK-M10.sysops.aol.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (wonkity.com [127.0.0.1]); Fri, 01 Aug 2008 13:54:20 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Question re IPs-to-CIDR conversion program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2008 19:54:24 -0000 On Fri, 1 Aug 2008, Mark Wilson wrote: > I'm trying to write a program that will take 2 IPs and return an appropriate CIDR which contains both. > > 3. Point me to another program which does what I need? Net::CIDR has a range2cidr method that will do that. -Warren Block * Rapid City, South Dakota USA