123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
-
- #ifndef _PCAP_USB_STRUCTS_H__
- #define _PCAP_USB_STRUCTS_H__
- #define URB_TRANSFER_IN 0x80
- #define URB_ISOCHRONOUS 0x0
- #define URB_INTERRUPT 0x1
- #define URB_CONTROL 0x2
- #define URB_BULK 0x3
- #define URB_SUBMIT 'S'
- #define URB_COMPLETE 'C'
- #define URB_ERROR 'E'
- 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;
- typedef struct _usb_header {
- u_int64_t id;
- u_int8_t event_type;
- u_int8_t transfer_type;
- u_int8_t endpoint_number;
- u_int8_t device_address;
- u_int16_t bus_id;
- char setup_flag;
- char data_flag;
- int64_t ts_sec;
- int32_t ts_usec;
- int32_t status;
- u_int32_t urb_len;
- u_int32_t data_len;
- pcap_usb_setup setup;
- } pcap_usb_header;
- #endif
|