Store the active flag if there is an initial link.
This ensures that we don't spuriously re-detect a link if we have a race between starting to watch for link state changes and detecting the initial link.
This commit is contained in:
@@ -130,6 +130,10 @@ AutoconfigLooper::_ReadyToRun()
|
||||
if (interface.HasLink()) {
|
||||
_ConfigureIPv4();
|
||||
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
|
||||
|
||||
// Also make sure we don't spuriously try to configure again from
|
||||
// a link changed notification that might race us.
|
||||
fLastMediaStatus |= IFM_ACTIVE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user