Print this page
NO_COMMENT

@@ -18,18 +18,18 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 #ifndef _ISCSI_PROTOCOL_H
 #define _ISCSI_PROTOCOL_H
 
-#pragma ident   "@(#)iscsi_protocol.h   1.7     05/12/07 SMI"
+#pragma ident   "@(#)iscsi_protocol.h   1.10    08/02/29 SMI"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 

@@ -77,10 +77,16 @@
 #define ISCSI_MAX_KEY_VALUE_PAIRS       8192
 
 /* text separtor between key value pairs exhanged in login */
 #define ISCSI_TEXT_SEPARATOR    '='
 
+/* reserved text constants for Text Mode Negotiation */
+#define ISCSI_TEXT_NONE                 "None"
+#define ISCSI_TEXT_REJECT               "Reject"
+#define ISCSI_TEXT_IRRELEVANT           "Irrelevant"
+#define ISCSI_TEXT_NOTUNDERSTOOD        "NotUnderstood"
+
 /* Reserved value for initiator/target task tag */
 #define ISCSI_RSVD_TASK_TAG     0xffffffff
 
 /* maximum length for text keys/values */
 #define KEY_MAXLEN 64

@@ -648,10 +654,23 @@
 #define ISCSI_DEFAULT_ERROR_RECOVERY_LEVEL      0
 #define ISCSI_DEFAULT_IFMARKER                  FALSE
 #define ISCSI_DEFAULT_OFMARKER                  FALSE
 
 /*
+ * Minimum values from the iSCSI specification
+ */
+
+#define ISCSI_MIN_TIME2RETAIN                   0
+#define ISCSI_MIN_TIME2WAIT                     0
+#define ISCSI_MIN_ERROR_RECOVERY_LEVEL          0
+#define ISCSI_MIN_RECV_DATA_SEGMENT_LENGTH      0x200
+#define ISCSI_MIN_FIRST_BURST_LENGTH            0x200
+#define ISCSI_MIN_MAX_BURST_LENGTH              0x200
+#define ISCSI_MIN_CONNECTIONS                   1
+#define ISCSI_MIN_MAX_OUTSTANDING_R2T           1
+
+/*
  * Maximum values from the iSCSI specification
  */
 #define ISCSI_MAX_HEADER_DIGEST                 3
 #define ISCSI_MAX_DATA_DIGEST                   3
 #define ISCSI_MAX_TIME2RETAIN                   3600