From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsBuP-00011D-Sj for qemu-devel@nongnu.org; Thu, 27 Jun 2013 09:06:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsBuM-00022W-V0 for qemu-devel@nongnu.org; Thu, 27 Jun 2013 09:06:45 -0400 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:37111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsBuM-00021w-PP for qemu-devel@nongnu.org; Thu, 27 Jun 2013 09:06:42 -0400 Received: by mail-ea0-f169.google.com with SMTP id h15so397628eak.28 for ; Thu, 27 Jun 2013 06:06:41 -0700 (PDT) Received: from [192.168.1.28] (ter75-1-87-88-102-13.dsl.sta.abo.bbox.fr. [87.88.102.13]) by mx.google.com with ESMTPSA id n5sm3741675eed.9.2013.06.27.06.06.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 06:06:40 -0700 (PDT) Message-ID: <51CC38DC.90805@gmail.com> Date: Thu, 27 Jun 2013 15:06:36 +0200 From: Jordan Bouyat MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Dumping USB packets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi ! I recently grab a dummy usb driver(https://github.com/pkt/qemu-dummyusb/commit/c5f61398dcebc9831f4ca409553ae85b438f27a2) and modified it to behave like an HID mouse with the help of (hw/usb/dev-hid.c). It works, but my goal is to dump the whole USB packet in order to modify it or replaying it. I spend some hours to search in the source code, but the only data I succeeded to dump are the content data of the USB packet in the usb_dummy_handle_data() with the uint8_t buf[p->iov.size] variable. I also search in the USBPacket strucure (include/hw/usb.h) with the attribute data-buf[4096], but didn't succeed. Could someone help me ? Regards, lafouine.