From owner-freebsd-net Tue Jun 29 9:51:52 1999 Delivered-To: freebsd-net@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id A4D6314EDA for ; Tue, 29 Jun 1999 09:51:25 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id JAA12174; Tue, 29 Jun 1999 09:48:44 -0700 (PDT) Message-Id: <199906291648.JAA12174@implode.root.com> To: Pierre Beyssac Cc: "Andrew W. Smith" , freebsd-net@FreeBSD.ORG Subject: Re: 16 bit int for interface "reference count" In-reply-to: Your message of "Tue, 29 Jun 1999 17:19:59 +0200." <19990629171959.A87648@enst.fr> From: David Greenman Reply-To: dg@root.com Date: Tue, 29 Jun 1999 09:48:44 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >On Mon, Jun 28, 1999 at 10:36:57PM -0700, David Greenman wrote: >> on wcarchive, however, as it has a large number of TCP connections (and >> each one holds a reference). In any case, it is currently 16bits in >> FreeBSD and should be increased to 32bits. > >It's been changed to 32 bits a while ago (shortly after 3.2-RELEASE), >both on -current and -stable. > >Anyway the fix is pretty trivial if anyone using 3.2 or before is >affected: you apparently just need to recompile a kernel. > >revision 1.13 >date: 1999/05/16 17:09:20; author: pb; state: Exp; lines: +2 -2 >PR: kern/10570 >Submitted by: adrian@freebsd.org > >Change reference count in struct ifaddr to a u_int, to be able >to handle more than 2^16 routes to the same interface. > >Fix suggested by Andrew Bangs in PR kern/10570. >Tested by and me under -current. Actually, I was looking at the rt_refcnt element in struct rtentry which is still 16 bits. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org Creator of high-performance Internet servers - http://www.terasolutions.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message