diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-07-31 22:16:29 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-07-31 22:16:29 +0000 |
commit | 62b8aa083710d4d5f2ea06c7ed219049043eade0 (patch) | |
tree | bff55dbcfd48f8b4c4a3035b22adb2f978566544 /epan/dissectors/packet-usb-hid.h | |
parent | 99bd70035d3738264eae124e9c91d3f52cc0292a (diff) |
From Adam Nielsen via bug 3659:
Here is a patch against SVN that implements preliminary support for USB HID
devices. At the moment it only dissects the initial set up packets (which you
will see if you hotplug a keyboard or mouse.)
The patch also fixes a minor bug in the USB dissector code which reported
certain packets as malformed due to miscounting bytes, and it reports control
packet data and padding data in a more user-friendly manner.
svn path=/trunk/; revision=29256
Diffstat (limited to 'epan/dissectors/packet-usb-hid.h')
-rw-r--r-- | epan/dissectors/packet-usb-hid.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/epan/dissectors/packet-usb-hid.h b/epan/dissectors/packet-usb-hid.h new file mode 100644 index 0000000000..04f747a328 --- /dev/null +++ b/epan/dissectors/packet-usb-hid.h @@ -0,0 +1,29 @@ +/* packet-usb-hid.h + * + * $Id$ + * + * USB HID dissector + * By Adam Nielsen <a.nielsen@shikadi.net> 2009 + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __PACKET_USB_HID_H__ +#define __PACKET_USB_HID_H__ + +int +dissect_usb_hid_get_report_descriptor(packet_info *pinfo _U_, proto_tree *parent_tree, tvbuff_t *tvb, int offset, usb_trans_info_t *usb_trans_info _U_, usb_conv_info_t *usb_conv_info _U_); + +#endif |