Handle strings as complete units, instead of a byte at a time.

This commit is contained in:
Michael Brown
2006-12-05 01:08:56 +00:00
parent 3a7d762c1c
commit 67577556a2
2 changed files with 74 additions and 156 deletions

View File

@@ -478,23 +478,6 @@ enum iscsi_rx_state {
ISCSI_RX_DATA_PADDING,
};
enum iscsi_string_key_value {
STRING_KEY = 0,
STRING_VALUE,
};
/** iSCSI text string processor state */
struct iscsi_string_state {
/** Text string key */
char key[16];
/** Text string value */
char value[8];
/** Key/value flag */
enum iscsi_string_key_value key_value;
/** Index into current string */
unsigned int index;
};
/** An iSCSI session */
struct iscsi_session {
/** TCP connection for this session */
@@ -596,8 +579,6 @@ struct iscsi_session {
size_t rx_len;
/** Buffer for received data (not always used) */
void *rx_buffer;
/** State of strings received during login phase */
struct iscsi_string_state string;
/** Current SCSI command
*