// iscsimgt.h
typedef struct _ISCSI_ConnectionStaticInfo {
ULONGLONG UniqueConnectionId;
USHORT CID;
UCHAR State;
UCHAR Protocol;
UCHAR HeaderIntegrity;
UCHAR DataIntegrity;
USHORT Reserved;
ULONG MaxRecvDataSegmentLength;
ULONG AuthType;
ISCSI_IP_Address LocalAddr;
ULONG LocalPort;
ISCSI_IP_Address RemoteAddr;
ULONG RemotePort;
ULONGLONG EstimatedThroughput;
ULONG MaxDatagramSize;
} ISCSI_ConnectionStaticInfo, *PISCSI_ConnectionStaticInfo;
View the official Windows Driver Kit DDI referenceNo description available.
The ISCSI_ConnectionStaticInfo structure contains information about the characteristics of an established connection.
UniqueConnectionIdThe connection identifier (ID) that the operating system and application software use to uniquely identify the connection. The LoginToTarget and AddConnectionToSession methods both return this value in the UniqueConnectionId parameter. Do not confuse this value with the connection ID (CID).
CIDThe iSCSI connection ID (CID) for this connection instance. The iSCSI protocol uses this value to identify the connection.
StateThe type of connection state. This member can have the following symbolic constant values, which are defined in Iscsimgt.h.
| State | Meaning |
|---|---|
| login | The TCP connection has been established, but the target still has not sent a valid logon response with the final bit set. |
| full | The target has sent a valid logon response with the final bit set, and the connection is in the full feature phase. The initiator can send SCSI commands and data to targets. |
| logout | The initiator has sent a valid logoff command, but the connection has not yet been closed. |
ProtocolThe transport protocol that is used to establish this connection instance. For a list of values that you can assign to this member, see ISCSI_CONNECTION_PROTOCOL_TYPE_QUALIFIERS.
HeaderIntegrityThe name of the iSCSI header digest scheme that is associated with this connection session. This member can have the following symbolic constant values, which are defined in Iscsimgt.h.
| HeaderIntegrity | Meaning |
|---|---|
| None | The session is not using a header digest. |
| crc32c | The session is using a 32-bit CRC digest. |
DataIntegrityThe name of the iSCSI data digest scheme that is associated with this connection session. This member can have the following symbolic constant values, which are defined in Iscsimgt.h.
| HeaderIntegrity | Meaning |
|---|---|
| None | The session is not using a data digest. |
| crc32c | The session is using a 32-bit CRC digest. |
ReservedReserved for Microsoft use only. You must set this member to 0.
MaxRecvDataSegmentLengthThe maximum data payload size, in bytes, that is supported for command or data PDUs within this connection session.
AuthTypeThe type of authentication that is used to establish a connection. The ISCSI_ConnectionStaticInfo WMI Class, which is defined in Mgmt.mof, does specify values for this member; but if your software includes Iscsidsc.h, it can use the ISCSI_AUTH_TYPES enumeration to assign values to this member.
LocalAddrA ISCSI_IP_Address structure that holds the IP address of the local network card that the initiator uses to connect to the network.
LocalPortThe local port number that this connection instance uses.
RemoteAddrA ISCSI_IP_Address structure that holds the IP address of the remote network card that this connection instance uses.
RemotePortThe remote port number that the initiator used to make the connection.
EstimatedThroughputThe estimated throughput, in bytes per second, of the connection.
MaxDatagramSizeThe maximum size, in bytes, of the datagram that the transport supports.
ISCSI_CONNECTION_PROTOCOL_TYPE_QUALIFIERS
ISCSI_ConnectionStaticInfo WMI Class