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/tests | |
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/tests')
-rw-r--r-- | src/tests/iscsiboot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/iscsiboot.c b/src/tests/iscsiboot.c index 65a820a9..ce847856 100644 --- a/src/tests/iscsiboot.c +++ b/src/tests/iscsiboot.c @@ -21,10 +21,10 @@ int test_iscsiboot ( const char *initiator_iqn, int rc; memset ( &test_iscsidev, 0, sizeof ( test_iscsidev ) ); - memcpy ( &test_iscsidev.iscsi.tcp.peer, target, - sizeof ( test_iscsidev.iscsi.tcp.peer ) ); - test_iscsidev.iscsi.initiator = initiator_iqn; - test_iscsidev.iscsi.target = target_iqn; + memcpy ( &test_iscsidev.iscsi.target, target, + sizeof ( test_iscsidev.iscsi.target ) ); + test_iscsidev.iscsi.initiator_iqn = initiator_iqn; + test_iscsidev.iscsi.target_iqn = target_iqn; test_iscsidev.iscsi.lun = lun; test_iscsidev.iscsi.username = username; test_iscsidev.iscsi.password = password; |