- Delete the existing default gateway when releasing DHCP IP or transitioning to static IP
- Fixes bug #6205
svn path=/branches/wlan-bringup/; revision=54913
if( Adapter ) {
if (Adapter->NteContext)
DeleteIPAddress( Adapter->NteContext );
+ if (Adapter->RouterMib.dwForwardNextHop)
+ DeleteIpForwardEntry( &Adapter->RouterMib );
proto = find_protocol_by_adapter( &Adapter->DhclientInfo );
if (proto)
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)