Re: Networking: mbuf->m_hdr.mh_data doesn't include DLIL header?
Re: Networking: mbuf->m_hdr.mh_data doesn't include DLIL header?
- Subject: Re: Networking: mbuf->m_hdr.mh_data doesn't include DLIL header?
- From: Michael Smith <email@hidden>
- Date: Tue, 19 Sep 2006 10:40:01 -0700
On Sep 19, 2006, at 10:33 AM, Bhavesh Davda wrote:
Will the following heuristic work consistently?
if (mbuf_data(*packet) != mbuf_pktdat(*packet)) {
// the ethernet drivers must have stripped the L2 header. Prepend it
}
I really meant to say:
if (mbuf_data(*packet) != mbuf_datastart(*packet)) {
...
}
No; it assumes that the incoming packet was always received at the
beginning of the mbuf/cluster/external buffer, and that's not a safe
assumption.
= Mike
_______________________________________________
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