mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
- Send DHCP discover after loading the configuration so we have valid options
- Fixes erratic behavior with certain DHCP servers svn path=/trunk/; revision=43678
This commit is contained in:
parent
3a16c5a061
commit
ce81b8dba4
|
@ -199,9 +199,7 @@ BOOL PrepareAdapterForService( PDHCP_ADAPTER Adapter ) {
|
||||||
Adapter->DhclientInfo.name,
|
Adapter->DhclientInfo.name,
|
||||||
Adapter->BindStatus));
|
Adapter->BindStatus));
|
||||||
|
|
||||||
add_protocol(Adapter->DhclientInfo.name, Adapter->DhclientInfo.rfdesc, got_one, &Adapter->DhclientInfo);
|
|
||||||
Adapter->DhclientInfo.client->state = S_INIT;
|
Adapter->DhclientInfo.client->state = S_INIT;
|
||||||
state_reboot(&Adapter->DhclientInfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( IPAddress ) free( IPAddress );
|
if( IPAddress ) free( IPAddress );
|
||||||
|
@ -331,6 +329,15 @@ BOOLEAN AdapterDiscover() {
|
||||||
|
|
||||||
read_client_conf(&Adapter->DhclientInfo);
|
read_client_conf(&Adapter->DhclientInfo);
|
||||||
|
|
||||||
|
if (Adapter->DhclientInfo.client->state == S_INIT)
|
||||||
|
{
|
||||||
|
add_protocol(Adapter->DhclientInfo.name,
|
||||||
|
Adapter->DhclientInfo.rfdesc,
|
||||||
|
got_one, &Adapter->DhclientInfo);
|
||||||
|
|
||||||
|
state_init(&Adapter->DhclientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
InsertTailList( &AdapterList, &Adapter->ListEntry );
|
InsertTailList( &AdapterList, &Adapter->ListEntry );
|
||||||
} else { free( Adapter ); Adapter = 0; }
|
} else { free( Adapter ); Adapter = 0; }
|
||||||
} else { free( Adapter ); Adapter = 0; }
|
} else { free( Adapter ); Adapter = 0; }
|
||||||
|
|
Loading…
Reference in a new issue