Networking: mbuf->m_hdr.mh_data doesn't include DLIL header?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rN1EiVWPUTCGC81bPsoS6U7koF74fELc5HpYuvAbY/+zTAGrxq1HCg/iPD9HRae3S7CJjRC0pB1+vkWYEsW7tXsbqDSYKPSOdKwhfXaoMIuIXEZVy8L2Pfe7Ea/6raDiRTq5m8LhFryS4Ch3rkpJXBztkWnJm8t+fnVfaMlPv48= For certain packets that my iff_input_func is receiving, when I looked at the entire mbuf structure received in parameter 4, I noticed that the m_hdr.mh_data field offsets 14 bytes beyond the start of the ethernet frame. This is causing my mbuf_dup() cloned mbuf to not contain the 14 bytes of ethernet header in my NKE. Looking in the original mbuf received in my iff_input_func, the 14 bytes of ethernet header are in the mbuf body at mbuf->M_dat.MH.MH_dat.MH_databuf[0..13]. What am I doing wrong? How do I clone the mbuf to include the DLIL header? Thanks! - Bhavesh -- Bhavesh P. Davda _______________________________________________ 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
participants (1)
-
Bhavesh Davda