From owner-freebsd-current Fri Nov 16 16: 2:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id E465637B405; Fri, 16 Nov 2001 16:02:51 -0800 (PST) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id fAH02pM29425; Fri, 16 Nov 2001 16:02:51 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id A13B93811; Fri, 16 Nov 2001 16:02:51 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Julian Elischer Cc: current@FreeBSD.ORG, net@FreeBSD.ORG, wollman@FreeBSD.ORG Subject: Re: re-entrancy and the IP stack. In-Reply-To: <3BF5A5D5.3D408744@vicor-nb.com> Date: Fri, 16 Nov 2001 16:02:51 -0800 From: Peter Wemm Message-Id: <20011117000251.A13B93811@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer wrote: [..] > What is needed is obviously a 'per packet' storage location > for those things, defined in a "per protocol family" manner. > > Luigi has already tried this scheme by defining a > dummynet specific mbuf type that can be prepended to the > front of packets. What I suggest is to extend this > to defining a MT_PROTOSTORAGE. (or similar) mbuf type > that generic networking code is educated to ignore, > and that protocols can use to pass packet-specific state > information from one place to another. Uhh.. no thanks. Whatever you do, do *NOT* abuse the mbuf system for this. We went to a lot of trouble (well, Garrett specifically) to rid the stacks of this obscenity. Do *NOT* generalize it and undo it. MT_DUMMYNET must die, not be propagated elsewhere. If you want to have some general storage mechnaism, do *not* use mbufs for it. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message