Re: [PATCH] usb: add pcap support.

2021-01-20 Thread Gerd Hoffmann
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

Re: [PATCH] usb: add pcap support.

2021-01-19 Thread Philippe Mathieu-Daudé
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

[PATCH] usb: add pcap support.

2021-01-19 Thread 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 ++