瀏覽代碼

the ISCSIClient now stores the received TSIH. Removed duplicate parameters.

Tal Aloni 8 年之前
父節點
當前提交
356f01db2f
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0 5
      ISCSI/ISCSI.Client/ConnectionState.cs
  2. 1 0
      ISCSI/ISCSI.Client/ISCSIClient.cs

+ 0 - 5
ISCSI/ISCSI.Client/ConnectionState.cs

@@ -12,11 +12,6 @@ namespace ISCSI.Client
 {
     internal class ConnectionState
     {
-        // Session parameters:
-        public ulong ISID; // Initiator Session ID
-        // Connection parameters:
-        public ushort CID; // connection ID, generated by the initiator
-
         public const int ReceiveBufferSize = 131072; // Note: FirstBurstLength, MaxBurstLength and MaxRecvDataSegmentLength put a cap on DataSegmentLength, NOT on the PDU length.
         public byte[] ReceiveBuffer = new byte[ReceiveBufferSize]; // immediate receive buffer
         public byte[] ConnectionBuffer = new byte[0]; // we append the receive buffer here until we have a complete PDU

+ 1 - 0
ISCSI/ISCSI.Client/ISCSIClient.cs

@@ -87,6 +87,7 @@ namespace ISCSI.Client
             LoginResponsePDU response = WaitForPDU(request.InitiatorTaskTag) as LoginResponsePDU;
             if (response != null && response.Status == LoginResponseStatusName.Success)
             {
+                m_session.TSIH = response.TSIH;
                 // Status numbering starts with the Login response to the first Login request of the connection
                 m_connection.StatusNumberingStarted = true;
                 m_connection.ExpStatSN = response.StatSN + 1;