From owner-freebsd-net@FreeBSD.ORG Thu May 24 07:50:05 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 128B6106566B for ; Thu, 24 May 2012 07:50:05 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.freebsd.org (Postfix) with SMTP id 57B018FC0C for ; Thu, 24 May 2012 07:50:03 +0000 (UTC) Received: (qmail 23950 invoked from network); 24 May 2012 07:43:21 -0000 Received: from bizet.nethelp.no (HELO localhost) (195.1.209.33) by bizet.nethelp.no with SMTP; 24 May 2012 07:43:21 -0000 Date: Thu, 24 May 2012 09:43:21 +0200 (CEST) Message-Id: <20120524.094321.74735847.sthaug@nethelp.no> To: rizzo@iet.unipi.it From: sthaug@nethelp.no In-Reply-To: <20120524071055.GA50710@onelab2.iet.unipi.it> References: <20120524071055.GA50710@onelab2.iet.unipi.it> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: net@freebsd.org Subject: Re: use of non-contiguous masks in address lookups ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 07:50:05 -0000 > every now and then the issue comes up on whether we still need > to support non-contiguous masks in address lookups. > I seem to remember someone (perhaps on this list) making a > case for their presence, but forgot the details. > So, does anyone know of a practical use of non contiguous masks ? I vote for removing non-contiguous masks. They are incompatible with CIDR, which was introduced in 1993 (!). Non-contiguous masks have been unsupported in many routers produced the last 10 years or so. E.g. for Juniper M/MX/T routers you specify an interface address with a contiguous mask (1.2.3.4/29 etc). It is *not possible* to specify a non-contiguous mask. Address lookup is always based on longest prefix match. Steinar Haug, Nethelp consulting, sthaug@nethelp.no