From owner-freebsd-net@FreeBSD.ORG Mon Apr 5 06:41:31 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 178C416A4D1 for ; Mon, 5 Apr 2004 06:41:31 -0700 (PDT) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E63C43D41 for ; Mon, 5 Apr 2004 06:41:30 -0700 (PDT) (envelope-from andre@freebsd.org) Received: (qmail 15076 invoked from network); 5 Apr 2004 13:41:29 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 5 Apr 2004 13:41:29 -0000 Message-ID: <40716208.808CF084@freebsd.org> Date: Mon, 05 Apr 2004 15:41:28 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Anders Lowinger References: <20040331005914.A6934@xorpc.icir.org> <40712A8F.9000704@packetfront.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Luigi Rizzo cc: net@freebsd.org Subject: Re: do we support non contiguous netmasks ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 13:41:31 -0000 Anders Lowinger wrote: > > Luigi Rizzo wrote: > > Hi, > > i was wondering if anyone knows what kind of support we have > > in FreeBSD networking code, for non contiguous netmasks. > > While it is trivial to support them for interface addresses, > > managing them in the routing table is probably far from trivial > > and I believe also mostly useless... and anyways, i have no > > idea how our kernel code deals with them > > Not sure why you wonder? Do you need it? > > If we implement a mtrie for faster routing-lookups, > non-contiguous masks need to go. > > Not even Cisco implements anything else than contiguous masks, > and I have a very hard time to understand why they are needed. So far I haven't found any useful application of non-contignous mask in network applications. It can probably go away. But step by step. Currently Luigi has teamed up with me to do the per-if ARP table stuff and the removal of cloning from the routing table. That alone will make network life in the kernel much easier. -- Andre