tcpdump mailing list archives

Re: [Patch 3-4] pcap-usb-linux.c


From: Jean-Louis <jelot-tcpdump () jelot it>
Date: Thu, 27 Nov 2008 11:53:46 +0100

Guy Harris ha scritto:

On Oct 29, 2008, at 7:32 PM, Jean-Louis wrote:

in "text mode" ther'is direction check, I don't know how I can use this "filter", but the check is broken

It can only be used by calling pcap_setdirection() in an application.


Ok

I don't know what the motivation is for inverting the direction on control transfers - Paolo?

the direction is inverted in etype=="C"

etype can be "S" (submit), "C" (complete), "E" (error)

inverting direction with etype=="C" seems be misunderstood of usb
specification, submit/complete != request/response

data direction for usb is always defined by type of endpoint for bulk,
interrupt and isochronous (endpoint can be only IN or OUT).
for control endpoint data direction is defined by field bmRequestType
(bit7) of setup data

so, data direction for all type of endpoint, is in "ep_num"... if etype
is "S" or "C" is insignificant
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: