|
From: Xiaofan C. <xia...@gm...> - 2007-01-11 23:10:19
|
On 12/30/06, linuxguy <lin...@gm...> wrote: > Can someone recommend a good USB sniffer application for Linux ? > Something like ethereal (wireshark now...) except for USB instead of > Ethernet. > Try usbmon. You need to recompile your kernel (enable debugfs and build usbmon as module). I do not think it is as mature as the USB sniffers under Windows. There are some documentations about usbmon. http://people.redhat.com/zaitcev/linux/index.html >From Linux 2.19.1 Documentations/usb/usbmon.txt: ******************************* * Introduction The name "usbmon" in lowercase refers to a facility in kernel which is used to collect traces of I/O on the USB bus. This function is analogous to a packet socket used by network monitoring tools such as tcpdump(1) or Ethereal. Similarly, it is expected that a tool such as usbdump or USBMon (with uppercase letters) is used to examine raw traces produced by usbmon. The usbmon reports requests made by peripheral-specific drivers to Host Controller Drivers (HCD). So, if HCD is buggy, the traces reported by usbmon may not correspond to bus transactions precisely. This is the same situation as with tcpdump. ... * Raw binary format and API TBD ********************************* |