mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[TCPIP]
- Fix adding a static interface route svn path=/branches/wlan-bringup/; revision=54946
This commit is contained in:
@@ -638,9 +638,6 @@ BOOLEAN ReadIpConfiguration(PIP_INTERFACE Interface)
|
||||
TRUE);
|
||||
|
||||
AddrInitIPv4(&Interface->Unicast, inet_addr(RegistryDataA.Buffer));
|
||||
|
||||
if (!AddrIsUnspecified(&Interface->Unicast))
|
||||
IPAddInterfaceRoute(Interface);
|
||||
|
||||
RtlFreeAnsiString(&RegistryDataA);
|
||||
}
|
||||
@@ -664,6 +661,13 @@ BOOLEAN ReadIpConfiguration(PIP_INTERFACE Interface)
|
||||
RtlFreeAnsiString(&RegistryDataA);
|
||||
}
|
||||
|
||||
/* We have to wait until both IP address and subnet mask
|
||||
* are read to add the interface route, but we must do it
|
||||
* before we add the default gateway */
|
||||
if (!AddrIsUnspecified(&Interface->Unicast) &&
|
||||
!AddrIsUnspecified(&Interface->Netmask))
|
||||
IPAddInterfaceRoute(Interface);
|
||||
|
||||
/* Read default gateway info */
|
||||
Status = ZwQueryValueKey(ParameterHandle,
|
||||
&Gateway,
|
||||
|
||||
Reference in New Issue
Block a user