From a2e3357825968e34ce4ba0adf7a6ada9d9b19b92 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 22 Dec 2006 12:24:12 +0000 Subject: 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! --- src/include/gpxe/iscsi.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/gpxe/iscsi.h b/src/include/gpxe/iscsi.h index 635fe2699..1b9ef9261 100644 --- a/src/include/gpxe/iscsi.h +++ b/src/include/gpxe/iscsi.h @@ -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; -- cgit v1.2.3-55-g7522