Skip to content

Commit 6ba5a43

Browse files
committed
usb/pcap: set flag_setup
Without that wireshark complains about invalid control setup data for non-control transfers. Signed-off-by: Gerd Hoffmann <[email protected]> Message-Id: <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 0dbe476 commit 6ba5a43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hw/usb/pcap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static void do_usb_pcap_ctrl(FILE *fp, USBPacket *p, bool setup)
127127
.xfer_type = usbmon_xfer_type[USB_ENDPOINT_XFER_CONTROL],
128128
.epnum = in ? 0x80 : 0,
129129
.devnum = dev->addr,
130+
.flag_setup = setup ? 0 : '-',
130131
.flag_data = '=',
131132
.length = dev->setup_len,
132133
};
@@ -169,6 +170,7 @@ static void do_usb_pcap_data(FILE *fp, USBPacket *p, bool setup)
169170
.xfer_type = usbmon_xfer_type[p->ep->type],
170171
.epnum = usbmon_epnum(p),
171172
.devnum = p->ep->dev->addr,
173+
.flag_setup = '-',
172174
.flag_data = '=',
173175
.length = p->iov.size,
174176
};

0 commit comments

Comments
 (0)