Remove support for FDDI and token ring media types in userland utilities.
Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15077
This commit is contained in:
parent
6a46d31c65
commit
1f7ec30542
@ -373,15 +373,6 @@ ifconfig_media_get_status(const struct ifmediareq *ifmr)
|
||||
}
|
||||
break;
|
||||
|
||||
case IFM_FDDI:
|
||||
case IFM_TOKEN:
|
||||
if (ifmr->ifm_status & IFM_ACTIVE) {
|
||||
return ("inserted");
|
||||
} else {
|
||||
return ("no ring");
|
||||
}
|
||||
break;
|
||||
|
||||
case IFM_IEEE80211:
|
||||
if (ifmr->ifm_status & IFM_ACTIVE) {
|
||||
/* NB: only sta mode associates */
|
||||
|
@ -333,8 +333,6 @@ media::media(config &, const char *var, const char *type)
|
||||
{
|
||||
static struct ifmedia_description media_types[] = {
|
||||
{ IFM_ETHER, "Ethernet" },
|
||||
{ IFM_TOKEN, "Tokenring" },
|
||||
{ IFM_FDDI, "FDDI" },
|
||||
{ IFM_IEEE80211, "802.11" },
|
||||
{ IFM_ATM, "ATM" },
|
||||
{ -1, "unknown" },
|
||||
|
@ -159,14 +159,6 @@ media_status(int s)
|
||||
printf("no carrier");
|
||||
break;
|
||||
|
||||
case IFM_FDDI:
|
||||
case IFM_TOKEN:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE)
|
||||
printf("inserted");
|
||||
else
|
||||
printf("no ring");
|
||||
break;
|
||||
|
||||
case IFM_IEEE80211:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE) {
|
||||
/* NB: only sta mode associates */
|
||||
|
@ -168,14 +168,6 @@ media_status(int s)
|
||||
printf("no carrier");
|
||||
break;
|
||||
|
||||
case IFM_FDDI:
|
||||
case IFM_TOKEN:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE)
|
||||
printf("inserted");
|
||||
else
|
||||
printf("no ring");
|
||||
break;
|
||||
|
||||
case IFM_IEEE80211:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE) {
|
||||
/* NB: only sta mode associates */
|
||||
|
Loading…
Reference in New Issue
Block a user