mirror of
https://github.com/reactos/reactos.git
synced 2024-10-20 08:01:05 +00:00
[TCPIP]
- Fix a bug where a static IP configuration was not properly restored after a media state change svn path=/branches/wlan-bringup/; revision=54934
This commit is contained in:
parent
e8b08a9dd8
commit
8b3125261d
|
@ -1568,6 +1568,7 @@ NTSTATUS DispTdiSetIPAddress( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
|
|||
TI_DbgPrint(MID_TRACE,("New Netmask : %x\n",
|
||||
IF->Netmask.Address.IPv4Address));
|
||||
|
||||
IF->DhcpEnabled = FALSE;
|
||||
IPAddInterfaceRoute( IF );
|
||||
|
||||
IpAddrChange->Address = IF->Index;
|
||||
|
@ -1599,6 +1600,8 @@ NTSTATUS DispTdiDeleteIPAddress( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
|
|||
|
||||
IF->Broadcast.Type = IP_ADDRESS_V4;
|
||||
IF->Broadcast.Address.IPv4Address = 0;
|
||||
|
||||
IF->DhcpEnabled = TRUE;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
} EndFor(IF);
|
||||
|
|
|
@ -214,6 +214,7 @@ PIP_INTERFACE IPCreateInterface(
|
|||
IF->PointToPoint.Type = IP_ADDRESS_V4;
|
||||
IF->Netmask.Type = IP_ADDRESS_V4;
|
||||
IF->Broadcast.Type = IP_ADDRESS_V4;
|
||||
IF->StaticRouter.Type = IP_ADDRESS_V4;
|
||||
|
||||
TcpipInitializeSpinLock(&IF->Lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue