Fix a bug about iSCSI initiator(based on NetworkPkg-IPv4 network stack) cannot reinstate session with Windows iSCSI target.

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jin Eric <eric.jin@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14862 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Wu Jiaxin 2013-11-19 05:52:10 +00:00 committed by jiaxinwu
parent 7df095713a
commit 0b10bb6f43
1 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ IScsiCreateConnection (
Conn->PartialRspRcvd = FALSE;
Conn->ParamNegotiated = FALSE;
Conn->Cid = Session->NextCid++;
Conn->Ipv6Flag = mPrivate->Ipv6Flag;
Conn->Ipv6Flag = NvData->IpMode == IP_MODE_IP6 || Session->ConfigData->AutoConfigureMode == IP_MODE_AUTOCONFIG_IP6;
Status = gBS->CreateEvent (
EVT_TIMER,
@ -472,7 +472,7 @@ IScsiSessionLogin (
if (!EFI_ERROR (Status)) {
Session->State = SESSION_STATE_LOGGED_IN;
if (!mPrivate->Ipv6Flag) {
if (!Conn->Ipv6Flag) {
ProtocolGuid = &gEfiTcp4ProtocolGuid;
} else {
ProtocolGuid = &gEfiTcp6ProtocolGuid;
@ -489,7 +489,7 @@ IScsiSessionLogin (
ASSERT_EFI_ERROR (Status);
if (mPrivate->Ipv6Flag) {
if (Conn->Ipv6Flag) {
Status = IScsiGetIp6NicInfo (Conn);
}
}