Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Kernel version: 2.6.31-22

I wish to monitor the USB traffic to and from a device. I've searched, but different sites seem to give different information and I'm confused.

  1. Some sites suggest that I need to recompile the kernel, while others suggest that all I need to do is install the latest wireshark. Do I need to recompile?
  2. Can someone suggest a website describing the most recent approach to USB sniffing?
share|improve this question
    
What distribution are you running? Under Ubuntu 10.04 Wireshark has native support for doing a capture on the USB interfaces. –  Mark Davidson Sep 23 '10 at 7:14
add comment

1 Answer

up vote 4 down vote accepted

You need to recompile kernel/load module. It is present in 2.6.32 (LTS) kernel - probably 2.6.31 as well. less /usr/src/linux/Documentation/usb/usbmon.txt. Format is "well known" and it acts like character devince. It can dump in text format as well.

Wireshark can provide live stream and/or read file from USB as far as GUI is concerned.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.