site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com
This is more or less a generic lamentation not a question. I've been doing quite a lot of KEXT coding recently (NKE mostly interface filter) and thus I had to analyze packets. One of the functions that I've used was mbuf_pullup. Here's its description:
Move the next len bytes in to mbuf from other mbufs in the chain. This is commonly used to get the IP and TCP or UDP header contiguous in the first mbuf. If mbuf_pullup fails, the entire mbuf chain will be freed.
haven't checked about darwin-local stuff, but mbuf_pullup() seems to me that an equivalent of BSD m_pullup(). there's a little bit extended variant that should be inside darwin - called m_pulldown(). the detail is here, and it is available on all *BSDs. http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/ha... itojun _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com