Varuna De Silva wrote:
I am working at the moment with Wireshark dissecting sw. And
I want USB Protocol Packets to be decoded by any packet
capturing tool such as Wireshark or TCPDump, which has not
yet been done. (According to my knowledge)
I don’t see how that would be useful. Wireshark/Ethereal and TCPDump
both analyze network protocols. USB doesn’t use network protocols.
There are no IP or MAC addresses. There’s no frame of reference for
these packages. You’d have to write an entirely new analyzer module,
and as long as you’re doing that, you might as well use one of the
existing packages.
But there is this simple question that is still unclear to me.
Where should we place our filter driver is it on top of
usbport.sys (host controller driver) for me to
capture raw usb traffic.
You can’t capture raw USB traffic. That is all managed by the host
controller hardware, and is never exposed in software. The best you can
do is capture the URBs as they are transmitted to and from the host
controller. Usually, that’s good enough. If it’s not, then you need a
real hardware bus analyzer.
The HHD USB Monitor, which is a USB sniffer just like you describe,
works by installing a class upper filter to the USB Host Controller
class, in {36FC9E60-C465-11CF-8056-444553540000}.
placing it on top of usbhub.sys dont support every URB. as
is said in the forum.
http://www.osronline.com/showThread.cfm?link=95329
I don’t see how you got that interpretation from what I said.
I am using windows XP right now, and would be delighted
to find a good starting point for my project. (Possibly
a sample driver in DDk)
There is a good generic filter driver in the KMDF samples. You could
start there. However, you need to take a close look at the HHD USB
Monitor and USB Snoopy before you go reinventing the wheel. This
problem has already been solved.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.