mirror of https://github.com/acidanthera/audk.git
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:
parent
7df095713a
commit
0b10bb6f43
|
@ -228,7 +228,7 @@ IScsiCreateConnection (
|
||||||
Conn->PartialRspRcvd = FALSE;
|
Conn->PartialRspRcvd = FALSE;
|
||||||
Conn->ParamNegotiated = FALSE;
|
Conn->ParamNegotiated = FALSE;
|
||||||
Conn->Cid = Session->NextCid++;
|
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 (
|
Status = gBS->CreateEvent (
|
||||||
EVT_TIMER,
|
EVT_TIMER,
|
||||||
|
@ -472,7 +472,7 @@ IScsiSessionLogin (
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
Session->State = SESSION_STATE_LOGGED_IN;
|
Session->State = SESSION_STATE_LOGGED_IN;
|
||||||
|
|
||||||
if (!mPrivate->Ipv6Flag) {
|
if (!Conn->Ipv6Flag) {
|
||||||
ProtocolGuid = &gEfiTcp4ProtocolGuid;
|
ProtocolGuid = &gEfiTcp4ProtocolGuid;
|
||||||
} else {
|
} else {
|
||||||
ProtocolGuid = &gEfiTcp6ProtocolGuid;
|
ProtocolGuid = &gEfiTcp6ProtocolGuid;
|
||||||
|
@ -489,7 +489,7 @@ IScsiSessionLogin (
|
||||||
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
if (mPrivate->Ipv6Flag) {
|
if (Conn->Ipv6Flag) {
|
||||||
Status = IScsiGetIp6NicInfo (Conn);
|
Status = IScsiGetIp6NicInfo (Conn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue