Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-usbip.h
1 /* packet-usbip.h
2  * Definitions for USBIP dissection
3  * Copyright 2016, Christian Lamparter <chunkeey@googlemail.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef __PACKET_USBIP_H__
13 #define __PACKET_USBIP_H__
14 
15 #define USBIP_HEADER_WITH_SETUP_LEN 0x28
16 #define USBIP_HEADER_LEN 0x30
17 
18 #define USBIP_DIR_OUT 0x00
19 #define USBIP_DIR_IN 0x01
20 
21 struct usbip_header {
22  guint8 devid;
23  guint8 busid;
24  guint32 ep;
25  guint32 dir;
26 };
27 
28 #endif
29 
30 /*
31  * Editor modelines - https://www.wireshark.org/tools/modelines.html
32  *
33  * Local variables:
34  * c-basic-offset: 4
35  * tab-width: 8
36  * indent-tabs-mode: nil
37  * End:
38  *
39  * vi: set shiftwidth=4 tabstop=8 expandtab:
40  * :indentSize=4:tabSize=8:noTabs=true:
41  */
Definition: packet-usbip.h:21