Fix an issue that execute "map -r" in NT32 simulator cannot reinstate iSCSI session with Linux iSCSI target after unplug/plug network cable.

Signed-off-by: Ye Ting  <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14783 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Ye Ting 2013-10-18 02:49:13 +00:00 committed by tye1
parent 80e864fc47
commit 03b08d7a06
1 changed files with 6 additions and 5 deletions

View File

@ -259,15 +259,16 @@ IScsiCreateConnection (
CopyMem (&Tcp4IoConfig->Gateway, &NvData->Gateway, sizeof (EFI_IPv4_ADDRESS)); CopyMem (&Tcp4IoConfig->Gateway, &NvData->Gateway, sizeof (EFI_IPv4_ADDRESS));
CopyMem (&Tcp4IoConfig->RemoteIp, &NvData->TargetIp, sizeof (EFI_IPv4_ADDRESS)); CopyMem (&Tcp4IoConfig->RemoteIp, &NvData->TargetIp, sizeof (EFI_IPv4_ADDRESS));
Tcp4IoConfig->RemotePort = NvData->TargetPort; Tcp4IoConfig->RemotePort = NvData->TargetPort;
Tcp4IoConfig->ActiveFlag = TRUE; Tcp4IoConfig->ActiveFlag = TRUE;
Tcp4IoConfig->StationPort = 0;
} else { } else {
Tcp6IoConfig = &TcpIoConfig.Tcp6IoConfigData; Tcp6IoConfig = &TcpIoConfig.Tcp6IoConfigData;
CopyMem (&Tcp6IoConfig->RemoteIp, &NvData->TargetIp, sizeof (EFI_IPv6_ADDRESS)); CopyMem (&Tcp6IoConfig->RemoteIp, &NvData->TargetIp, sizeof (EFI_IPv6_ADDRESS));
Tcp6IoConfig->RemotePort = NvData->TargetPort; Tcp6IoConfig->RemotePort = NvData->TargetPort;
Tcp6IoConfig->ActiveFlag = TRUE; Tcp6IoConfig->ActiveFlag = TRUE;
Tcp6IoConfig->StationPort = 0;
} }
// //