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:
Martin Blapp 2003-08-09 20:44:08 +00:00
parent 69a7c91e70
commit 0b284f2c7c

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__ */
/*