diff options
author | Michael Brown | 2006-12-22 13:24:12 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-22 13:24:12 +0100 |
commit | a2e3357825968e34ce4ba0adf7a6ada9d9b19b92 (patch) | |
tree | b72afaa23e867345319b0149037de480614937ac /src/include | |
parent | Fix prototype of random() and move to stdlib.h (diff) | |
download | ipxe-a2e3357825968e34ce4ba0adf7a6ada9d9b19b92.tar.gz ipxe-a2e3357825968e34ce4ba0adf7a6ada9d9b19b92.tar.xz ipxe-a2e3357825968e34ce4ba0adf7a6ada9d9b19b92.zip |
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!
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/iscsi.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/gpxe/iscsi.h b/src/include/gpxe/iscsi.h index 635fe269..1b9ef926 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; |