Fix devices which do not support ifm_status. Always return

TRUE for them.

Reported by:	mdodd
Tested by:	Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:
mbr 2003-08-09 20:44:08 +00:00
parent 28a1a9c3f2
commit f318bbf9d2

View File

@ -3288,19 +3288,24 @@ interface_active(struct interface_info *ip) {
return (HAVELINK);
}
}
}
/*
* If dhclient.conf contains media settings, we cannot
* abort if the interface is not set to active mode.
*/
if (ip -> havemedia && ip -> client -> state != S_BOUND)
/*
* If dhclient.conf contains media settings, we cannot
* abort if the interface is not set to active mode.
*/
if (ip -> havemedia && ip -> client -> state != S_BOUND)
return (HAVELINK);
} else {
/*
* IFM_AVALID is not set. We cannot check
* the link state. Assume HAVELINK.
*/
return (HAVELINK);
}
/*
* We really have no link.
*/
return (NOLINK);
#else /* ifdef __FreeBSD__ */
/*