Revert files that were commit by mistake in previous commit. Sorry.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2011-04-23 01:56:02 +00:00
parent 9ff5266f3a
commit e65843e8c9
3 changed files with 41 additions and 77 deletions
+10 -8
View File
@@ -58,19 +58,21 @@ AutoconfigLooper::_RemoveClient()
void
AutoconfigLooper::_Configure()
{
// start with DHCP
if (fCurrentClient == NULL) {
fCurrentClient = new DHCPClient(fTarget, fDevice.String());
AddHandler(fCurrentClient);
}
// set IFF_CONFIGURING flag on interface
BNetworkInterface interface(fDevice.String());
int32 flags = interface.Flags() & ~IFF_AUTO_CONFIGURED;
interface.SetFlags(flags | IFF_CONFIGURING);
// remove current handler
_RemoveClient();
// start with DHCP
fCurrentClient = new DHCPClient(fTarget, fDevice.String());
AddHandler(fCurrentClient);
if (fCurrentClient->Initialize() == B_OK)
return;
@@ -89,7 +91,7 @@ AutoconfigLooper::_Configure()
BMessage message(kMsgConfigureInterface);
message.AddString("device", fDevice.String());
message.AddBool("auto_configured", true);
message.AddBool("auto", true);
BNetworkAddress link;
uint8 last = 56;