mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[DHCPCSVC]
- Delete the existing default gateway when releasing DHCP IP or transitioning to static IP - Fixes bug #6205 svn path=/branches/wlan-bringup/; revision=54913
This commit is contained in:
@@ -102,6 +102,8 @@ DWORD DSReleaseIpAddressLease( PipeSendFunc Send, COMM_DHCP_REQ *Req ) {
|
||||
if( Adapter ) {
|
||||
if (Adapter->NteContext)
|
||||
DeleteIPAddress( Adapter->NteContext );
|
||||
if (Adapter->RouterMib.dwForwardNextHop)
|
||||
DeleteIpForwardEntry( &Adapter->RouterMib );
|
||||
|
||||
proto = find_protocol_by_adapter( &Adapter->DhclientInfo );
|
||||
if (proto)
|
||||
@@ -170,6 +172,9 @@ DWORD DSStaticRefreshParams( PipeSendFunc Send, COMM_DHCP_REQ *Req ) {
|
||||
if( Adapter ) {
|
||||
if (Adapter->NteContext)
|
||||
DeleteIPAddress( Adapter->NteContext );
|
||||
if (Adapter->RouterMib.dwForwardNextHop)
|
||||
DeleteIpForwardEntry( &Adapter->RouterMib );
|
||||
|
||||
Adapter->DhclientState.state = S_STATIC;
|
||||
proto = find_protocol_by_adapter( &Adapter->DhclientInfo );
|
||||
if (proto)
|
||||
|
||||
Reference in New Issue
Block a user