ISCSIClient.Parameters.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (C) 2016 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. namespace ISCSI.Client
  9. {
  10. public partial class ISCSIClient
  11. {
  12. public class DesiredParameters
  13. {
  14. // Session parameters that will be offered to the target:
  15. public static bool InitialR2T = true;
  16. public static bool ImmediateData = true;
  17. public static int MaxBurstLength = DefaultParameters.Session.MaxBurstLength;
  18. public static int FirstBurstLength = DefaultParameters.Session.FirstBurstLength;
  19. public static int DefaultTime2Wait = 0;
  20. public static int DefaultTime2Retain = 20;
  21. public static int MaxOutstandingR2T = 1;
  22. public static bool DataPDUInOrder = true;
  23. public static bool DataSequenceInOrder = true;
  24. public static int ErrorRecoveryLevel = 0;
  25. public static int MaxConnections = 1;
  26. }
  27. public class DeclaredParameters
  28. {
  29. // Connection parameters:
  30. /// <summary>
  31. /// per direction parameter that the target or initator declares.
  32. /// maximum data segment length that the target (or initator) can receive in a single iSCSI PDU.
  33. /// </summary>
  34. public static int MaxRecvDataSegmentLength = 262144;
  35. }
  36. }
  37. }