aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-18 09:10:14 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-18 09:10:14 +0000
commitdf75f29284640bcb1f849615dbcf38614de33723 (patch)
treeb96d4cc5cc3bea7b23d9dd2a529ead3690027fe6 /epan/dissectors/packet-usb.h
parent5243edd7375f3eef54ba93da4e473f50cf0e2aa8 (diff)
move some defines to packet-usb.h so that they can be shared with other dissectors
svn path=/trunk/; revision=19587
Diffstat (limited to 'epan/dissectors/packet-usb.h')
-rw-r--r--epan/dissectors/packet-usb.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/epan/dissectors/packet-usb.h b/epan/dissectors/packet-usb.h
new file mode 100644
index 0000000000..c0004df45d
--- /dev/null
+++ b/epan/dissectors/packet-usb.h
@@ -0,0 +1,59 @@
+/* packet-usb.h
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * 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_H__
+#define __PACKET_USB_H__
+
+/* there is one such structure for each device/endpoint conversation */
+typedef struct _usb_conv_info_t {
+ guint16 class; /* class for this conversation */
+ emem_tree_t *transactions;
+} usb_conv_info_t;
+
+/* there is one such structure for each request/response */
+typedef struct _usb_trans_info_t {
+ guint32 request_in;
+ guint32 response_in;
+ guint8 requesttype;
+ guint8 request;
+ union {
+ struct {
+ guint8 type;
+ guint8 index;
+ } get_descriptor;
+ };
+
+
+ /* used to pass the interface class from the
+ * interface descriptor onto the endpoint
+ * descriptors so that we can create a
+ * conversation with the appropriate class
+ * once we know the endpoint.
+ */
+ usb_conv_info_t *interface_info;
+} usb_trans_info_t;
+
+#define IF_CLASS_UNKNOWN 0xffff
+#define IF_CLASS_MASSTORAGE 0x08
+
+#endif