Author: cgutman
Date: Wed Jan 11 23:38:48 2012
New Revision: 54913
URL:
http://svn.reactos.org/svn/reactos?rev=54913&view=rev
Log:
[DHCPCSVC]
- Delete the existing default gateway when releasing DHCP IP or transitioning to static
IP
- Fixes bug #6205
Modified:
branches/wlan-bringup/dll/win32/dhcpcsvc/dhcp/api.c
Modified: branches/wlan-bringup/dll/win32/dhcpcsvc/dhcp/api.c
URL:
http://svn.reactos.org/svn/reactos/branches/wlan-bringup/dll/win32/dhcpcsvc…
==============================================================================
--- branches/wlan-bringup/dll/win32/dhcpcsvc/dhcp/api.c [iso-8859-1] (original)
+++ branches/wlan-bringup/dll/win32/dhcpcsvc/dhcp/api.c [iso-8859-1] Wed Jan 11 23:38:48
2012
@@ -102,6 +102,8 @@
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 @@
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)