mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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:
parent
12f1e92c72
commit
c4fcda78d4
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue