data into mbufs
data into mbufs
- Subject: data into mbufs
- From: "Peter Lovell" <email@hidden>
- Date: Mon, 23 Jan 2006 18:20:34 -0500
Hi folks,
I'm rewriting some old, hacky kext code to use kpi etc.
One of the things is to get a chuck of data into mbufs for sending,
typically 500-800 bytes and occasionally could be a bit over 1K. I'd
like to avoid dealing with mbuf characteristics as much as possible, and
leave that to the kpi_mbuf routines.
Looking at the functions available, it would seem that the most reliable
way would be to allocate a header mbuf, and then call mbuf_copyback to
copy the data into it (since the function will add mbufs, clusters etc
as needed). I'll have to set pkthdr info when done, of course.
But this routine isn't included in the ADC documentation even though it
is in the headers and not flagged as "private".
Can we rely on this routine, and/or is there a better way of copying a
hunk of data into mbufs for sending?
Thanks.....Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden