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:
Michael Lotz 2013-04-02 02:57:14 +02:00
parent 1b3dd41a35
commit 274b8be6c4
1 changed files with 6 additions and 2 deletions

View File

@ -125,9 +125,13 @@ void
AutoconfigLooper::_ReadyToRun()
{
start_watching_network(B_WATCH_NETWORK_LINK_CHANGES, this);
BNetworkInterface interface(fDevice.String());
if (interface.HasLink()) {
_ConfigureIPv4();
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
}
}
void