Commit 3e20f17b authored by Yuri Benditovich's avatar Yuri Benditovich Committed by Frediano Ziglio
Browse files

usb-redir: extend USB backend to support emulated devices

Redirection of emulated devices requires special approach, as
usbredirhost can't be used for that (it works only with libusb
devices). For emulated devices we create instance of usbredirparser
that implements USB redirection protocol.  In order to work with the
same set of protocol capabilities that usbredirhost sets up with
remote side, the parser shall: - not send its own 'hello' to the
- initialize the same capabilities that usbredirhost
- receive the same 'hello' response
For that we analyze 'hello' sent by USB redir parser and extract set
of capabilities from it and upon receive of 'hello' response we
provide it also to the parser.  When libusb device is redirected via a
channel, instance of usbredirhost serves it.  When emulated device is
redirected via a channel, instance of usbredirparser does the job.
Signed-off-by: Yuri Benditovich's avatarYuri Benditovich <>
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <>
parent 78c5a2e9
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment