[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] Dumping USB Packets
From: |
Jordan Bouyat |
Subject: |
[Qemu-discuss] Dumping USB Packets |
Date: |
Thu, 27 Jun 2013 15:56:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
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 USBDevice strucure (include/hw/usb.h) with the
attribute data-buf[4096], but didn't succeed. I also don't find where data are
in USBPacket strcture.
Could someone help me ?
Regards,
lafouine.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-discuss] Dumping USB Packets,
Jordan Bouyat <=