Fix slight oversight in previous commit.

Only trigger autoconfiguration if the link status changed from down
to up.
This commit is contained in:
Rene Gollent 2012-04-11 18:31:44 -04:00
parent 9cac658a9f
commit 56981da008

View File

@ -149,7 +149,8 @@ AutoconfigLooper::MessageReceived(BMessage* message)
|| message->FindInt32("media", &media) != B_OK)
break;
if ((fLastMediaStatus & IFM_ACTIVE) != (media & IFM_ACTIVE)) {
if ((fLastMediaStatus & IFM_ACTIVE) == 0
&& (media & IFM_ACTIVE) != 0) {
// Reconfigure the interface when we have a link again
_ConfigureIPv4();
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6