On Thu,  2 Dec 2004 09:57:24 +0100, THESNIERES Sylvain <[EMAIL PROTECTED]> 
wrote:

> I've found a way to create an USB packets dumper for linux like USBSnoop in
> windows. Since I didn't found any on the Internet, I'd like to know if someone
> here is interrested. In this case I could submit a patch (or better) figure 
> out
> how to create a compile option for the kernel in order to support this feature
> :) Actually the data is dumped to the kernel logger but I plan to make a proc
> interface. Any suggestions ? Thank you in advance.

Please search the Net for something called "USBmon". It's an earlier attempt
to do this very important work. It floundered largely on API problems.
Piping things through procfs is not going to fly. I would think that usbfs
sounds like a good place, but Greg suggested a socket instead (a-la Netlink).
This has to be thought out well.

The mechanics of this thing sans API are rather straightforward. The
consensus is that intercepting usb_submit_urb and urb->complete is good
enough for most needs.

-- Pete


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to