Fix slight oversight in previous commit.
Only trigger autoconfiguration if the link status changed from down to up.
This commit is contained in:
parent
9cac658a9f
commit
56981da008
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user