jiegec / usbip

A Rust library to run a USB/IP server
MIT License
255 stars 25 forks source link

attach to example keyboard failed #28

Closed Dizans closed 10 months ago

Dizans commented 10 months ago

Env: ubuntu 22.04 kernel: 6.2.0-26-generic usbip (usbip-utils 2.0)

Commands: env RUST_LOG=info cargo run --example hid_keyboard

On another terminal: sudo usbip list -r 127.0.0.1 works OK sudo usbip attach -r 127.0.0.1 -b 0 panic:

thread 'tokio-runtime-worker' panicked at 'not implemented: hid request SetupPacket { request_type: 33, request: 10, value: 0, index: 0, length: 0 }', src/hid.rs:109:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', examples/hid_keyboard.rs:34:42