From owner-freebsd-net Mon Dec 11 14: 1:30 2000 From owner-freebsd-net@FreeBSD.ORG Mon Dec 11 14:01:28 2000 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 18FB337B400 for ; Mon, 11 Dec 2000 14:01:28 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eBBM1Pc15264; Mon, 11 Dec 2000 14:01:25 -0800 (PST) Date: Mon, 11 Dec 2000 14:01:25 -0800 From: Alfred Perlstein To: Bosko Milekic Cc: net@FreeBSD.ORG Subject: Re: Abusing m_ext for a worthy goal. Message-ID: <20001211140125.M16205@fw.wintelcom.net> References: <20001211121354.E16205@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bmilekic@technokratis.com on Mon, Dec 11, 2000 at 04:37:15PM -0500 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Bosko Milekic [001211 13:36] wrote: > > On Mon, 11 Dec 2000, Alfred Perlstein wrote: > > > Hmm, I think instead of doing this sort of abuse, what I should be > > doing is allocating an mbuf header, then allocating a mbuf cluster > > then attaching them using the MEXTADD() macro. > > Alfred, I'm surprised you're pointing this out when in my first post, > the code example does exactly this, minus the mbuf allocation. :-) Well i understand that, I just didn't want to put all that code in when a small abstraction would give a good api for other code that might do this. > > I'm going to look at the code to see if there's a clean way to do this, > > if not can you provide an interface for allocating and free'ing > > clusters by themselves? :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message