diff options
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/iscsi_if.h | 9 | ||||
-rw-r--r-- | include/scsi/libiscsi.h | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index e057c5d3703d..1a18196d77f6 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
@@ -229,6 +229,11 @@ enum iscsi_param { | |||
229 | ISCSI_PARAM_CONN_PORT, | 229 | ISCSI_PARAM_CONN_PORT, |
230 | ISCSI_PARAM_CONN_ADDRESS, | 230 | ISCSI_PARAM_CONN_ADDRESS, |
231 | 231 | ||
232 | ISCSI_PARAM_USERNAME, | ||
233 | ISCSI_PARAM_USERNAME_IN, | ||
234 | ISCSI_PARAM_PASSWORD, | ||
235 | ISCSI_PARAM_PASSWORD_IN, | ||
236 | |||
232 | /* must always be last */ | 237 | /* must always be last */ |
233 | ISCSI_PARAM_MAX, | 238 | ISCSI_PARAM_MAX, |
234 | }; | 239 | }; |
@@ -255,6 +260,10 @@ enum iscsi_param { | |||
255 | #define ISCSI_SESS_RECOVERY_TMO (1 << ISCSI_PARAM_SESS_RECOVERY_TMO) | 260 | #define ISCSI_SESS_RECOVERY_TMO (1 << ISCSI_PARAM_SESS_RECOVERY_TMO) |
256 | #define ISCSI_CONN_PORT (1 << ISCSI_PARAM_CONN_PORT) | 261 | #define ISCSI_CONN_PORT (1 << ISCSI_PARAM_CONN_PORT) |
257 | #define ISCSI_CONN_ADDRESS (1 << ISCSI_PARAM_CONN_ADDRESS) | 262 | #define ISCSI_CONN_ADDRESS (1 << ISCSI_PARAM_CONN_ADDRESS) |
263 | #define ISCSI_USERNAME (1 << ISCSI_PARAM_USERNAME) | ||
264 | #define ISCSI_USERNAME_IN (1 << ISCSI_PARAM_USERNAME_IN) | ||
265 | #define ISCSI_PASSWORD (1 << ISCSI_PARAM_PASSWORD) | ||
266 | #define ISCSI_PASSWORD_IN (1 << ISCSI_PARAM_PASSWORD_IN) | ||
258 | 267 | ||
259 | /* iSCSI HBA params */ | 268 | /* iSCSI HBA params */ |
260 | enum iscsi_host_param { | 269 | enum iscsi_host_param { |
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 348265d4a27e..61bc8f75b267 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -221,6 +221,10 @@ struct iscsi_session { | |||
221 | int dataseq_inorder_en; | 221 | int dataseq_inorder_en; |
222 | int erl; | 222 | int erl; |
223 | int tpgt; | 223 | int tpgt; |
224 | char *username; | ||
225 | char *username_in; | ||
226 | char *password; | ||
227 | char *password_in; | ||
224 | char *targetname; | 228 | char *targetname; |
225 | char *initiatorname; | 229 | char *initiatorname; |
226 | /* hw address being used for iscsi connection */ | 230 | /* hw address being used for iscsi connection */ |