struct iscsi_connection_data

Overview

Parameters of an iSCSI connection, including its iSCSI operational and security parameters, its status (DOWN, UP etc) and a SCSI device name associated with that connection. More…

#include <iscsi_initiator.h>

struct iscsi_connection_data {
    // fields

    iscsi_connection_status status;
    int conf_params;
    char initiator_name[ISCSI_MAX_NAME_LENGTH];
    char initiator_alias[ISCSI_MAX_NAME_LENGTH];
    int max_connections;
    char initial_r2t[ISCSI_BOOLEAN_LENGTH];
    char header_digest[ISCSI_DIGEST_LENGTH];
    char data_digest[ISCSI_DIGEST_LENGTH];
    char immediate_data[ISCSI_BOOLEAN_LENGTH];
    int max_recv_data_segment_length;
    int first_burst_length;
    int max_burst_length;
    int default_time2wait;
    int default_time2retain;
    int max_outstanding_r2t;
    char data_pdu_in_order[ISCSI_BOOLEAN_LENGTH];
    char data_sequence_in_order[ISCSI_BOOLEAN_LENGTH];
    int error_recovery_level;
    char session_type[ISCSI_SESSION_TYPE_LENGTH];
    iscsi_tgt_chap_data_t chap;
    char device_name[ISCSI_MAX_DEVICE_NAME_LEN];
    char scsi_generic_device_name[ISCSI_MAX_DEVICE_NAME_LEN];
    char connection_id[ISCSI_SESSION_ID_LENGTH];
    int prepare_device_attempts;
    pthread_mutex_t status_mutex;
};

Detailed Documentation

Parameters of an iSCSI connection, including its iSCSI operational and security parameters, its status (DOWN, UP etc) and a SCSI device name associated with that connection.

Fields

iscsi_connection_status status

Connection status (UP, DOWN etc)

int conf_params

OR of OFFER_XXX flags

char initiator_name[ISCSI_MAX_NAME_LENGTH]

InitiatorName

char initiator_alias[ISCSI_MAX_NAME_LENGTH]

InitiatorAlias

int max_connections

MaxConnections

char initial_r2t[ISCSI_BOOLEAN_LENGTH]

InitialR2T

char header_digest[ISCSI_DIGEST_LENGTH]

HeaderDigest

char data_digest[ISCSI_DIGEST_LENGTH]

DataDigest

char immediate_data[ISCSI_BOOLEAN_LENGTH]

ImmediateData

int max_recv_data_segment_length

MaxRecvDataSegmentLength

int first_burst_length

FirstBurstLength

int max_burst_length

MaxBurstLength (>= FirstBurstLength)

int default_time2wait

DefaultTime2Wait

int default_time2retain

DefaultTime2Retain

int max_outstanding_r2t

MaxOutstandingR2T

char data_pdu_in_order[ISCSI_BOOLEAN_LENGTH]

DataPDUInOrder

char data_sequence_in_order[ISCSI_BOOLEAN_LENGTH]

DataSequenceInOrder

int error_recovery_level

ErrorRecoveryLevel

char session_type[ISCSI_SESSION_TYPE_LENGTH]

SessionType

iscsi_tgt_chap_data_t chap

Security related data

char connection_id[ISCSI_SESSION_ID_LENGTH]

Windows iSCSI connection ID

int prepare_device_attempts

How many checks were made for device readiness

pthread_mutex_t status_mutex

Mutex to guard status field