site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi, Thanks, Matt _______________________________________________ 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... Is there an easy way to combine mbufs, I have a sosend filter on sockets, and on the same socket I am collecting the mbufs together if they meet a certain condition, and when the last one arrives I would like to put all of these mbufs into one. I can successfully exctract the data out of them, but putting that data all back into 1 mbuf has been giving me loads of problems. I tried to create a new mbuf using MGETHDR, to get the first mbuf as a packet header, then do unsigned char * help = mtod(mbuf,unsigned char*); memcpy(help,ourdatacombined,length); I was looking in Steven's book TCP/IP and darwin sources to get these ideas, but seems to not be working. This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Jaffa