Module usbip::usbip_protocol
source · Expand description
USB/IP protocol structs
This module contains declarations of all structs used in the USB/IP protocol, as well as functions to serialize and deserialize them to/from byte arrays, and functions to send and receive them over a socket.
They are based on the Linux kernel documentation.
Structs
- Common header for all context sensitive packets
Enums
- Client side commands from the Virtual Host Controller
- Server side responses from the USB Host
Constants
- Reply code: The list of exported USB devices
- Reply code: Reply to import
- Command code: Retrieve the list of exported USB devices
- Command code: import a remote USB device
- Command code: Submit an URB
- Command code: Unlink an URB
- Reply code: Reply for submitting an URB
- Reply code: Reply for URB unlink
- USB/IP protocol version