qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Dumping USB packets


From: Jordan Bouyat
Subject: [Qemu-devel] Dumping USB packets
Date: Thu, 27 Jun 2013 15:06:36 +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 USBPacket strucure (include/hw/usb.h) with the
attribute data-buf[4096], but didn't succeed.

Could someone help me ?

Regards,

lafouine.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]