HomeFreeBSD

Fix some nits with displaying Ethernet media status exposed by the recent

Description

Fix some nits with displaying Ethernet media status exposed by the recent
extended Ethernet media states:

  • Don't apply IFM_SUBTYPE to the raw subtype in the description table. IFM_SUBTYPE() requires a fully populated word and was truncating values in the table when comparing resulting in false matches (notably "10GBase-KX4" for the no media case).
  • Explicitly check for IFM_ETHER.
  • Use SIOCGIFXMEDIA when present to obtain extended media states.
  • Explicitly handle "no carrier".

PR: 202247
Reviewed by: bapt

Details

Provenance
jhbAuthored on
Reviewer
bapt
Parents
rP393972: - Add new port: math/R-cran-irlba
Branches
Unknown
Tags
Unknown