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:
parent
28a1a9c3f2
commit
f318bbf9d2
@ -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__ */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user