Don't try to auto-configure network interfaces with no link.
We already start watching for link state changes, so as soon as a link is established the configuration will be triggered.
This commit is contained in:
@@ -125,8 +125,12 @@ void
|
|||||||
AutoconfigLooper::_ReadyToRun()
|
AutoconfigLooper::_ReadyToRun()
|
||||||
{
|
{
|
||||||
start_watching_network(B_WATCH_NETWORK_LINK_CHANGES, this);
|
start_watching_network(B_WATCH_NETWORK_LINK_CHANGES, this);
|
||||||
_ConfigureIPv4();
|
|
||||||
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
|
BNetworkInterface interface(fDevice.String());
|
||||||
|
if (interface.HasLink()) {
|
||||||
|
_ConfigureIPv4();
|
||||||
|
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user