diff options
author | John Baldwin <jhb@FreeBSD.org> | 2015-09-15 10:48:16 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2015-09-15 10:48:16 -0700 |
commit | dee6d5272072f4c91902fafa784a9f31a65bcc25 (patch) | |
tree | 99a1baa886cd58a9f70f434f8b3cc9a27a07c6dc /include | |
parent | 452399d84aac42b538e63d17187ee8918cdb3486 (diff) |
Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.
- 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) after recent changes to add extended
Ethernet media states in FreeBSD.
- Explicitly check for IFM_ETHER.
- Use SIOCGIFXMEDIA when present to obtain extended media states on newer
kernels.
- Explicitly handle "no carrier".
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions