From owner-freebsd-ipfw Thu Aug 15 12:10: 8 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3224D37B401 for ; Thu, 15 Aug 2002 12:10:04 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id E287143E3B for ; Thu, 15 Aug 2002 12:10:03 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g7FJA2m30919; Thu, 15 Aug 2002 12:10:02 -0700 (PDT) (envelope-from rizzo) Date: Thu, 15 Aug 2002 12:10:02 -0700 From: Luigi Rizzo To: Julian Elischer Cc: ipfw@FreeBSD.ORG Subject: Re: RFC: new mbuf flag bit needed Message-ID: <20020815121002.D30190@iguana.icir.org> References: <20020815113824.B30190@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from julian@elischer.org on Thu, Aug 15, 2002 at 11:49:41AM -0700 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Aug 15, 2002 at 11:49:41AM -0700, Julian Elischer wrote: ... > > The problem with protocol-specific bits is that you'll end up > > overloading them, and once you pass the packets to a multi-protocol > > module (such as netgraph, or ipfw2) you are in trouble. ... > protocols should not expect to store flags there on packets that cross a > protocol boundary. yesh but then you rely on those protocols cleaning up the flags after they are done with it. Which does not always happen in real life, e.g. one of the comments to motivate the use of M_PROTO1 is that "somewhere mbuf headers are not properly initialized and rcvif might contain junk" > it would be for passing state around within a single protocol family.. > such as you suggest. So, i do _not_ want a protocol-specific bit because the info i need is not protocol-specific and goes to a non-protocol-specific module. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message