mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[TCPIP]
- Fix adding a static interface route svn path=/branches/wlan-bringup/; revision=54946
This commit is contained in:
parent
5335d1ce21
commit
390f44b3f9
1 changed files with 7 additions and 3 deletions
|
@ -639,9 +639,6 @@ BOOLEAN ReadIpConfiguration(PIP_INTERFACE Interface)
|
|||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue