Display the skipped 4 bytes from the header as setup (see

struct usb_header). Just display it as a big endian number
(I don't have a spec at hand).


svn path=/trunk/; revision=19556
This commit is contained in:
Jörg Mayer 2006-10-16 14:24:24 +00:00
parent ff7e652235
commit a32f396008
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@
static int proto_usb = -1;
static int hf_usb_urb_type = -1;
static int hf_usb_device_address = -1;
static int hf_usb_setup = -1;
static int hf_usb_endpoint_number = -1;
static int hf_usb_src_endpoint_number = -1;
static int hf_usb_dst_endpoint_number = -1;
@ -539,6 +540,7 @@ dissect_usb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent)
offset += 4;
/* check for setup hdr presence */
proto_tree_add_item(tree, hf_usb_setup, tvb, offset, 4, FALSE);
setup = tvb_get_ntohl(tvb, offset);
offset += 4;
@ -736,6 +738,10 @@ proto_register_usb(void)
{ "Device", "usb.device_address", FT_UINT32, BASE_DEC, NULL, 0x0,
"USB device address", HFILL }},
{ &hf_usb_setup,
{ "Setup", "usb.setup", FT_UINT32, BASE_DEC, NULL, 0x0,
"USB setup", HFILL }},
{ &hf_usb_endpoint_number,
{ "Endpoint", "usb.endpoint_number", FT_UINT32, BASE_HEX, NULL, 0x0,
"usb endpoint number", HFILL }},