From owner-freebsd-net Wed Feb 28 6:24:36 2001 Delivered-To: freebsd-net@freebsd.org Received: from measurement-factory.com (measurement-factory.com [206.168.0.5]) by hub.freebsd.org (Postfix) with ESMTP id AC78D37B71C for ; Wed, 28 Feb 2001 06:24:34 -0800 (PST) (envelope-from rousskov@measurement-factory.com) Received: (from rousskov@localhost) by measurement-factory.com (8.9.3/8.9.3) id HAA57191; Wed, 28 Feb 2001 07:24:21 -0700 (MST) (envelope-from rousskov) Date: Wed, 28 Feb 2001 07:24:21 -0700 (MST) From: Alex Rousskov To: Luigi Rizzo Cc: freebsd-net@FreeBSD.ORG Subject: Re: Quick question about IP aliasing In-Reply-To: <200102280547.GAA30434@info.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 28 Feb 2001, Luigi Rizzo wrote: > if you do care about this, you may want to restructure the data structure > used to store/match interface addresses. At the moment it is a linear list, > so the matching of incoming packets is probably Very Time Comsuming! We have a patch (posted to this list long time ago) that optimizes the lookup for incoming packets: http://polygraph.ircache.net/Tips/FreeBSD-3.3/ip_addr_hash.patch You are right that an unpatched kernel cannot handle more than ~500 aliases efficiently: http://www.ircache.net/~wessels/Junk/aliases/ Alex. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message