Re: mbuf_dup/mbuf_freem with mbufs containing aux data
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Jan 29, 2007, at 6:57 PM, Bhavesh Davda wrote: How do I check if the new mbuf resulted from mbuf_dup() has auxiliary data at all? I couldn't see any accessors in kpi_mbuf. There is mbuf_aux_find() but it requires you to specify the data type for the query to return a match. If there were, then I would have simply queried if there was aux data attached in the new mbuf, and NULL'ed the aux pointer in the new mbuf, because my clients for the duplicated mbuf don't care about that aux data. Have you tried using mbuf_copym() instead of mbuf_dup()? For the former case, the auxiliary mbuf and any packet tags get migrated from the original to the new one. Adi Thanks! -- 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 smime.p7s
participants (1)
-
Adi Masputra