Jelajahi Sumber

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

Tal Aloni 8 tahun lalu
induk
melakukan
356f01db2f

+ 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;