-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error fetching ether gadget attributes #102
Comments
I'm at "721e3a1 correct attribute import / export" which is from about 18 months ago, so I will check this with the latest code - yes still seem to getting the same with "fe39790 Merge pull request #95 from mgrzeschik/feature/meson" from September. |
I suppose an easy fix would be to remove the class_, subclass and protocol attributes, but I don't know if these are used by anything. |
Output looks ok with the attached patch, but I don't know the code well enough to know if this is the best way, it feels more like a sticking plaster than a fix :
|
The show-gadgets example fails when trying to display an ether gadget's attributes. The example programs e.g. gadget-acm-ecm create the gadgets passing a null attributes pointer, and the ether gadget only creates 4 attributes dev_addr, host_addr, ifname and qmult, whereas in src/function/ether.c there are 7 attributes defined so usbg_f_net_get_attrs() fails when it tries to fetch the fifth one (class_) and returns USBG_ERROR_NOT_FOUND. So after running gadget-acm-ecm, output from show-gadgets looks like this with the not found error where it should be listing the ecm.usb0 attributes :
The text was updated successfully, but these errors were encountered: