summaryrefslogtreecommitdiff
path: root/usr/initiator.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-08-27 20:40:44 -0500
committerMike Christie <michaelc@cs.wisc.edu>2007-08-27 20:40:44 -0500
commit3361621c1aec84a848c86cf1f6aadf9ebcc2523f (patch)
treeab9c8281c66ed446eb40c9ba1d0371a63a891880 /usr/initiator.h
parentee7888cb0562f8105412e7a0ebc091d0de395d9d (diff)
downloadopen-iscsi-3361621c1aec84a848c86cf1f6aadf9ebcc2523f.tar.gz
mv iscsi state defines
iscsi conn and session state makes more sense in initiator.h instead of mgmt_ipc.h
Diffstat (limited to 'usr/initiator.h')
-rw-r--r--usr/initiator.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/initiator.h b/usr/initiator.h
index 968ee13..6ea19fc 100644
--- a/usr/initiator.h
+++ b/usr/initiator.h
@@ -42,6 +42,23 @@
#define LOCK_FILE "/var/lock/iscsi/lock"
#define LOCK_WRITE_FILE "/var/lock/iscsi/lock.write"
+typedef enum iscsi_conn_state_e {
+ STATE_FREE,
+ STATE_XPT_WAIT,
+ STATE_IN_LOGIN,
+ STATE_LOGGED_IN,
+ STATE_IN_LOGOUT,
+ STATE_LOGOUT_REQUESTED,
+ STATE_CLEANUP_WAIT,
+} iscsi_conn_state_e;
+
+typedef enum iscsi_session_r_stage_e {
+ R_STAGE_NO_CHANGE,
+ R_STAGE_SESSION_CLEANUP,
+ R_STAGE_SESSION_REOPEN,
+ R_STAGE_SESSION_REDIRECT,
+} iscsi_session_r_stage_e;
+
typedef enum conn_login_status_e {
CONN_LOGIN_SUCCESS = 0,
CONN_LOGIN_FAILED = 1,