tcpdump mailing list archives
usb sniffer setup packet
From: Paolo Abeni <paolo.abeni () email it>
Date: Wed, 11 Oct 2006 09:59:46 +0200
hello, In the current usb header (<pcap/usb.h>), I defined the usb setup header as: typedef struct _usb_setup { bpf_u_int32 bmRequestType; bpf_u_int32 bRequest; bpf_u_int32 wValue; bpf_u_int32 wIndex; bpf_u_int32 wLength; } pcap_usb_setup; I choose the length of each field arbitrary, because in current implementation each number obtained converting a text string. Only later I discovered that this header is part of the USB standard (and not an OS added feature, like I thought) and described in the USB specification as: typedef struct _usb_setup { u_int8_t bmRequestType; u_int8_t bRequest; u_int16_t wValue; u_int16_t wIndex; u_int16_t wLength; } pcap_usb_setup; A binary interface for sniffing USB packets is coming, so we will soon get packets with this header formatted following the standard. The attached patch change the usb setup struct as the standard tell, it is worthy ? Best regards, Paolo
Attachment:
usb_setup_hdr.patch
Description:
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- usb sniffer setup packet Paolo Abeni (Oct 11)
- Re: usb sniffer setup packet ronnie sahlberg (Oct 11)
- Re: usb sniffer setup packet Guy Harris (Oct 11)
- problem with relay server using pcap Brocha Strous (Oct 11)
- Re: problem with relay server using pcap Michael Richardson (Oct 11)
- Re: problem with relay server using pcap Brocha Strous (Oct 11)
- Re: problem with relay server using pcap Guy Harris (Oct 11)
- Re: problem with relay server using pcap Christian Kreibich (Oct 11)
- problem with relay server using pcap Brocha Strous (Oct 11)