linux-usb-gadgets / libusbgx

C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
GNU General Public License v2.0
216 stars 72 forks source link

Dev/net improve attributes to use Windows 10 native RNDIS driver #66

Closed fginez closed 2 years ago

fginez commented 2 years ago

This pull request contains an improvement which allows the user to write any value to class, subclass and protocol attributes of net function.

Specifically for RNDIS usage with Windos 10 native driver, the values are: EF (Miscellaneous), 04 (RNDIS) and 01 (RNDIS over Ethernet).

pabs3 commented 2 years ago

Merged, thanks.

@fginez it would be great if you could also either update the relevant examples in the examples dir (eg show-gadgets.c gadget-rndis-os-desc.c) or add new examples illustrating the use of this new feature.

-- bye, pabs

https://bonedaddy.net/pabs3/