mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-21 04:55:06 +03:00
net: adds class, subclass and protocol attributes
This commit allows the library user to change class, subclass and protocol values inside net derivated functions. This is needed by Windows 10 users using RNDIS function with the native driver.
This commit is contained in:
parent
b1c8586648
commit
4ca4a7699b
2 changed files with 84 additions and 0 deletions
|
@ -67,6 +67,9 @@ static struct {
|
|||
[USBG_F_NET_HOST_ADDR] = NET_ETHER_ADDR_ATTR(host_addr),
|
||||
[USBG_F_NET_IFNAME] = NET_RO_STRING_ATTR(ifname),
|
||||
[USBG_F_NET_QMULT] = NET_DEC_ATTR(qmult),
|
||||
[USBG_F_NET_CLASS] = NET_DEC_ATTR(class),
|
||||
[USBG_F_NET_SUBCLASS] = NET_DEC_ATTR(subclass),
|
||||
[USBG_F_NET_PROTOCOL] = NET_DEC_ATTR(protocol)
|
||||
};
|
||||
|
||||
#undef NET_DEC_ATTR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue