Re: Combining mbufs
Re: Combining mbufs
- Subject: Re: Combining mbufs
- From: Justin Walker <email@hidden>
- Date: Mon, 29 Nov 2004 13:32:42 -0800
On Nov 29, 2004, at 13:18, Matt Jaffa wrote:
Hi,
Is there an easy way to combine mbufs, I have a sosend filter on
sockets,
and on the same socket I am collecting the mbufs together if they meet
a certain condition,
and when the last one arrives I would like to put all of these mbufs
into one.
Why do you want to? Unless the chain gets unreasonably long, the
system should be able to handle it with no problems.
If you really need to do this, then you need to pay attention to the
"shape" of each mbuf (the bits in the flags word) in the chain. Just
blindly copying chunks of bits from one place to another (as in your
code snippet) won't do what you want.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Some people have a mental
| horizon of radius zero, and
| call it their point of view.
| -- David Hilbert
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden