Hi,
> > diff --git a/hw/usb/pcap.c b/hw/usb/pcap.c
> > new file mode 100644
> > index ..d3162d65e5fe
> > --- /dev/null
> > +++ b/hw/usb/pcap.c
> > @@ -0,0 +1,242 @@
>
> Missing license.
Good point.
> > +struct pcap_hdr {
>
> QEMU_PACKED?
>
> > +struct pcaprec_hdr {
>
> QEMU_PAC
On 1/19/21 8:44 PM, Gerd Hoffmann wrote:
> Log all traffic of a specific usb device to a pcap file for later
> inspection. File format is compatible with linux usb monitor.
>
> Usage:
> qemu -device usb-${somedevice},pcap=file.pcap
> wireshark file.pcap
Great!
> Signed-off-by: Gerd Hoffmann
Log all traffic of a specific usb device to a pcap file for later
inspection. File format is compatible with linux usb monitor.
Usage:
qemu -device usb-${somedevice},pcap=file.pcap
wireshark file.pcap
Signed-off-by: Gerd Hoffmann
---
include/hw/usb.h | 8 ++
hw/usb/bus.c | 16 ++