Cannot immediately overwrite the peer address when we parse

TargetAddress from the login response, because we still need the old
address while we close the connection!
This commit is contained in:
Michael Brown
2006-12-22 12:24:12 +00:00
parent 73e3e02367
commit a2e3357825
3 changed files with 20 additions and 9 deletions

View File

@@ -504,9 +504,15 @@ struct iscsi_session {
int retry_count;
/** Initiator IQN */
const char *initiator;
const char *initiator_iqn;
/** Target address
*
* Kept separate from the TCP connection structure because we
* may need to handle login redirection.
*/
struct sockaddr_tcpip target;
/** Target IQN */
const char *target;
const char *target_iqn;
/** Logical Unit Number (LUN) */
uint64_t lun;