]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usbmon vs. tcpdump: fix dropped packet count
authorJohannes Stezenbach <js@sig21.net>
Thu, 8 Sep 2011 13:39:15 +0000 (15:39 +0200)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:47 +0000 (11:17 -0800)
commit728259df1508c5c664ce4f0b808ee4a9f54e0e37
tree3528b868e57a4ed7e5d6b2055641eceb1f33ffd3
parent9ebd2eb58cad4077aa7d1e0a752e64865799f645
usbmon vs. tcpdump: fix dropped packet count

commit 236c448cb6e7f82096101e1ace4b77f8b38f82c8 upstream.

Report the number of dropped packets instead of zero
when using the binary usbmon interface with tcpdump.

# tcpdump -i usbmon1 -w dump
tcpdump: listening on usbmon1, link-type USB_LINUX_MMAPPED (USB with padded Linux header), capture size 65535 bytes
^C2155 packets captured
2155 packets received by filter
1019 packets dropped by kernel

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_bin.c