Jelajahi Sumber

Corrected typo

Tal Aloni 8 tahun lalu
induk
melakukan
70462a6037

+ 5 - 5
ISCSI/ISCSI.Server/ConnectionParameters.cs

@@ -15,12 +15,12 @@ namespace ISCSI.Server
     public class TransferEntry
     {
         public SCSICommandPDU Command;
-        public uint NextR2NSN;
+        public uint NextR2TSN;
 
-        public TransferEntry(SCSICommandPDU command, uint nextR2NSN)
+        public TransferEntry(SCSICommandPDU command, uint nextR2TSN)
         {
             Command = command;
-            NextR2NSN = nextR2NSN;
+            NextR2TSN = nextR2TSN;
         }
     }
 
@@ -47,9 +47,9 @@ namespace ISCSI.Server
         // Dictionary of current transfers: <transfer-tag, TransferEntry>
         private Dictionary<uint, TransferEntry> n_transfers = new Dictionary<uint, TransferEntry>();
 
-        public TransferEntry AddTransfer(uint transferTag, SCSICommandPDU command, uint nextR2NSN)
+        public TransferEntry AddTransfer(uint transferTag, SCSICommandPDU command, uint nextR2TSN)
         {
-            TransferEntry entry = new TransferEntry(command, nextR2NSN);
+            TransferEntry entry = new TransferEntry(command, nextR2TSN);
             n_transfers.Add(transferTag, entry);
             return entry;
         }

+ 2 - 2
ISCSI/ISCSI.Server/TargetResponseHelper.cs

@@ -103,11 +103,11 @@ namespace ISCSI.Server
                 ReadyToTransferPDU response = new ReadyToTransferPDU();
                 response.InitiatorTaskTag = request.InitiatorTaskTag;
                 response.TargetTransferTag = request.TargetTransferTag;
-                response.R2TSN = transfer.NextR2NSN;
+                response.R2TSN = transfer.NextR2TSN;
                 response.BufferOffset = offset + request.DataSegmentLength; // where we left off
                 response.DesiredDataTransferLength = Math.Min((uint)connection.TargetMaxRecvDataSegmentLength, totalLength - response.BufferOffset);
 
-                transfer.NextR2NSN++;
+                transfer.NextR2TSN++;
 
                 responseList.Add(response);
                 return responseList;