From owner-freebsd-current Fri Apr 30 7:29:23 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id A8B0814DD7 for ; Fri, 30 Apr 1999 07:29:16 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id HAA13708; Fri, 30 Apr 1999 07:29:15 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id HAA15462; Fri, 30 Apr 1999 07:29:14 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19990430122651.A11742@enst.fr> Date: Fri, 30 Apr 1999 07:29:14 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: Pierre Beyssac Subject: Re: Any action on PR 10570 ? getting closer to 65K :-( Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Pierre Beyssac wrote: > Wouldn't it be sensible to issue a warning (or panic) when > increasing the reference count reaches 0, rather than causing a > later kernel segfault? It would involve some overhead though, and > I'm not sure having 2^32 routes is currently realistic since most > machines don't even have that many bytes of RAM, but it might be > true one day... It would be pretty hard to create 2^32 routes, given that IPv4 only has 32-bit addresses. :-) Also, if you time it I suspect you'll find that it would take a geological lifetime on a fast machine to add that many routes. I think it makes more sense to increase the size of the reference count as discussed, rather than adding checks that add more complexity and overhead. John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message