usbredirhost: Use libusb_set_auto_detach_kernel_driver when available

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
make usbredirserver whatis entry meaningful

Signed-off-by: Liang Guo <guoliang@debian.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usbredirparser: Fix usbredirparser_do_write return value in case of blocking

https://bugs.freedesktop.org/show_bug.cgi?id=67804

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usbredirparser: Improve error logging for invalid packet lengths

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
usbredirparser: Update header-len inside the usbredirparser_do_read loop

If we process the hello packet with the 64 bit id capability bit in the same
loop as other packets (because they were send quickly after one each other),
then we end up reading 48 bytes for the header of the next packets processed
in the same loop, while we should read 64 bytes for them, causing the
sender and receiver to get out of sync.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Update TODO

Signed-off-by: Hans de Goede <hdegoede@redhat.com>