summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/iscsi.h
diff options
context:
space:
mode:
authorMichael Brown2006-10-03 11:17:38 +0200
committerMichael Brown2006-10-03 11:17:38 +0200
commitfedc186fd76156017abdcd7981faae89c8fc0ad8 (patch)
treebe2f6054e5db04abdd4088ac20d6cf981d4a5912 /src/include/gpxe/iscsi.h
parentInhibit compiler warnings on DBG() when building a non-debug object, (diff)
downloadipxe-fedc186fd76156017abdcd7981faae89c8fc0ad8.tar.gz
ipxe-fedc186fd76156017abdcd7981faae89c8fc0ad8.tar.xz
ipxe-fedc186fd76156017abdcd7981faae89c8fc0ad8.zip
Split login into security negotation and operational parameter
negotiation phases, to allow inclusion of CHAP authentication.
Diffstat (limited to 'src/include/gpxe/iscsi.h')
-rw-r--r--src/include/gpxe/iscsi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/gpxe/iscsi.h b/src/include/gpxe/iscsi.h
index 4d0da132d..6c7b43e07 100644
--- a/src/include/gpxe/iscsi.h
+++ b/src/include/gpxe/iscsi.h
@@ -167,6 +167,13 @@ struct iscsi_bhs_login_request {
#define ISCSI_LOGIN_NSG_OPERATIONAL_NEGOTIATION 0x01
#define ISCSI_LOGIN_NSG_FULL_FEATURE_PHASE 0x03
+/* Combined stage values and mask */
+#define ISCSI_LOGIN_STAGE_MASK ( ISCSI_LOGIN_CSG_MASK | ISCSI_LOGIN_NSG_MASK )
+#define ISCSI_LOGIN_STAGE_SEC ( ISCSI_LOGIN_CSG_SECURITY_NEGOTIATION | \
+ ISCSI_LOGIN_NSG_OPERATIONAL_NEGOTIATION )
+#define ISCSI_LOGIN_STAGE_OP ( ISCSI_LOGIN_CSG_OPERATIONAL_NEGOTIATION | \
+ ISCSI_LOGIN_NSG_FULL_FEATURE_PHASE )
+
/** ISID IANA format marker */
#define ISCSI_ISID_IANA 0x40000000