Page MenuHomeFreeBSD

uether: Handle SIOCGIFXMEDIA
Needs ReviewPublic

Authored by emaste on Fri, Oct 16, 3:43 PM.
Tags
None
Referenced Files
F176214165: D60779.id190051.diff
Sat, Oct 17, 12:39 AM
F176213999: D60779.diff
Sat, Oct 17, 12:37 AM
F176209183: D60779.diff
Fri, Oct 16, 11:43 PM
Subscribers
None

Details

Reviewers
adrian
kevans
Summary
Commit eb7e25b22f1 ("ifmedia changes:") added SIOCGIFXMEDIA for extended
Ethernet media subtypes, but uether_ioctl() was not updated to pass it
to ifmedia_ioctl().  I believe no existing USB Ethernet devices use
extended subtypes, so this went unnoticed.

Without SIOCGIFXMEDIA ifconfig falls back to SIOCGIFMEDIA, which maps an
extended subtype to IFM_OTHER, and ifconfig reports "Ethernet Other."

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.