From owner-freebsd-net Mon Jun 7 6:52:41 1999 Delivered-To: freebsd-net@freebsd.org Received: from noc.demon.net (server.noc.demon.net [193.195.224.4]) by hub.freebsd.org (Postfix) with ESMTP id 2FE4315405 for ; Mon, 7 Jun 1999 06:52:25 -0700 (PDT) (envelope-from fanf@demon.net) Received: by noc.demon.net; id OAA25547; Mon, 7 Jun 1999 14:52:23 +0100 (BST) Received: from fanf.noc.demon.net(195.11.55.83) by inside.noc.demon.net via smap (3.2) id xma025526; Mon, 7 Jun 99 14:52:11 +0100 Received: from fanf by fanf.noc.demon.net with local (Exim 1.73 #2) id 10qzoN-0005Cj-00; Mon, 7 Jun 1999 14:51:35 +0100 To: dgaudet@arctic.org From: Tony Finch Cc: net@freebsd.org Subject: Re: cidr aliases In-Reply-To: Message-Id: Date: Mon, 7 Jun 1999 14:51:35 +0100 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dean Gaudet wrote: > >We have an application which requires a godawfully large number of aliases >on one box. The linear list used to handle this stuff in 2.2.x (and 3.1.x >from what I can tell) just isn't cutting it. > >We essentially allocate entire CIDR blocks to a single box. So naturally >it'd be cool if we could just alias the entire CIDR block in one fell >swoop... this would reduce the kernel structures down to the minimum. We've been doing this at Demon since NetBSD 1.0 but haven't released the code for various reasons until now. I've PRed our patch as kern/12071 if you want to look at it. An alias is a net alias if the address is a network base address, i.e. address & ~netmask == 0. I also added some code to allow a listen()ing daemon to bind to a netaliased interface. Tony. -- f.a.n.finch dot@dotat.at fanf@demon.net black dog To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message