• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
data into mbufs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: data into mbufs
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: Efficient UDP processing
  • Next by Date: Re: data into mbufs
  • Previous by thread: Re: Why would CFReadStreamSetProperty return FALSE?
  • Next by thread: Re: data into mbufs
  • Index(es):
    • Date
    • Thread