site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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)) { ... } = Mike _______________________________________________ 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... 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. This email sent to site_archiver@lists.apple.com