also update configured devices' status, but ignore the loopback interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -873,7 +873,8 @@ NetServer::_ConfigureInterfaces(int socket, BMessage* _missingDevice)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_ConfigureInterface(socket, interface);
|
if (_ConfigureInterface(socket, interface) == B_OK)
|
||||||
|
_UpdateDeviceStatus(device, kStatusConnected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -962,6 +963,9 @@ NetServer::_AddStatusReplicant(bool force)
|
|||||||
void
|
void
|
||||||
NetServer::_UpdateDeviceStatus(const char *device, int status)
|
NetServer::_UpdateDeviceStatus(const char *device, int status)
|
||||||
{
|
{
|
||||||
|
if (strcmp(device, "loop") == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
StatusMap::iterator it = fStatusMap.find(device);
|
StatusMap::iterator it = fStatusMap.find(device);
|
||||||
if (it != fStatusMap.end() && it->second == status)
|
if (it != fStatusMap.end() && it->second == status)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user