Re: mbuf_pullup practically useless
Re: mbuf_pullup practically useless
- Subject: Re: mbuf_pullup practically useless
- From: email@hidden (Jun-ichiro itojun Hagino)
- Date: Mon, 27 Aug 2007 13:47:38 +0900 (JST)
> > 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/hagino.html
itojun
_______________________________________________
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