From owner-freebsd-net Fri Nov 16 16: 7:51 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id CCB8437B416; Fri, 16 Nov 2001 16:07:45 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fAH03c585728; Fri, 16 Nov 2001 16:03:38 -0800 (PST) (envelope-from rizzo) Date: Fri, 16 Nov 2001 16:03:38 -0800 From: Luigi Rizzo To: Julian Elischer Cc: current@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: re-entrancy and the IP stack. Message-ID: <20011116160338.A85435@iguana.aciri.org> References: <3BF5A5D5.3D408744@vicor-nb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3BF5A5D5.3D408744@vicor-nb.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org struct pkthdr already has a field (struct mbuf *aux) which i think is used to store info per-packet state by ipsec, at least according to the comment (my dummynet hack predated this, i would have used this field if it had been available at the time). So this field could be used to access the metadata. Unfortunately i suspect that making a truly extensible format is going to kill performance, because each module would have to hunt its own metadata in the chain. I'd rather go with specific fields in the pkthdr pointing/storing specific info (if you think of it, this is what the pkthdr is. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message