--- old/src/sun_nws/headers/common/iscsi/iscsi_protocol.h Fri Apr 4 13:31:05 2008 +++ new/src/sun_nws/headers/common/iscsi/iscsi_protocol.h Fri Apr 4 13:31:05 2008 @@ -20,7 +20,7 @@ * 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. */ @@ -27,7 +27,7 @@ #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" { @@ -79,6 +79,12 @@ /* 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 @@ -650,6 +656,19 @@ #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