From: Jordan Bouyat <jordan.bouyat@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Dumping USB packets
Date: Thu, 27 Jun 2013 15:06:36 +0200 [thread overview]
Message-ID: <51CC38DC.90805@gmail.com> (raw)
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 other threads:[~2013-06-27 13:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CC38DC.90805@gmail.com \
--to=jordan.bouyat@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.