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:
Hugo Santos 2007-04-03 05:59:16 +00:00
parent 90d110b64c
commit a3e4e4f762
1 changed files with 5 additions and 1 deletions

View File

@ -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
NetServer::_UpdateDeviceStatus(const char *device, int status)
{
if (strcmp(device, "loop") == 0)
return;
StatusMap::iterator it = fStatusMap.find(device);
if (it != fStatusMap.end() && it->second == status)
return;