site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 19 avr. 05, at 17:17, Carl Smith wrote: You will need to serialize your struct. _______________________________________________ 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... I am using the function ctl_enqueuembuf to pass data up to my userland process from my NKE. My problem lies in that I am passing a structure that has some pointers to buffers within this structure and these buffers are always showing empty/zeros when I receive them on the userland side. I am using the example from TCPlogger, in how TCPlogger is passing a structure up to it's user land, but for some reason for me it is not working. I get all the correct values for ints/booleans and etc. that are in my structure but the _MALLOCed buffers, from the NKE are empty. I suspect it has to do something with the way I filling out the mbuf because like I said I can receive the struct on the userland side, the pointers seem good to the buffers with in the structure but these buffers are just empty, zeroed out. Maybe if someone can take a look at the code below they have some suggestions or see something I do not. This email sent to site_archiver@lists.apple.com