Combining mbufs
Combining mbufs
- Subject: Combining mbufs
- From: Matt Jaffa <email@hidden>
- Date: Mon, 29 Nov 2004 14:18:59 -0700
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.
I can successfully exctract the data out of them, but putting that data
all back into 1 mbuf has been giving
me loads of problems.
I tried to create a new mbuf using MGETHDR, to get the first mbuf as a
packet header, then
do
unsigned char * help = mtod(mbuf,unsigned char*);
memcpy(help,ourdatacombined,length);
I was looking in Steven's book TCP/IP and darwin sources to get these
ideas, but seems to not be working.
Thanks,
Matt
_______________________________________________
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