]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[iscsi] Randomise a portion of the ISID to force new session instantiation
authorMichael Brown <mcb30@ipxe.org>
Sat, 16 Oct 2010 21:11:08 +0000 (22:11 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 16 Oct 2010 21:11:08 +0000 (22:11 +0100)
commit5f4ab0d22ab385ca5ba4d5783a6557676c60e417
tree381c3c990fef5940fc0fc1c2791729d9a3b3a85b
parent60b690141eaa8c736ab06500e6adfc9413c9b7f7
[iscsi] Randomise a portion of the ISID to force new session instantiation

When a connection to an iSCSI target is broken without gracefully
closing the TCP socket, a subsequent connection attempt may fail
because the target believes that we are attempting session
reinstatement (see RFC3720 section 5.3.1).  This has been observed
using the Microsoft iSCSI target.

Section 9.1.1 of RFC3720 states that initiators should use a stable
ISID, however section 5.3.1 shows that the only way to explicitly
request that a new session be created is to use a new ISID.

Fix by randomising the "qualifier" portion of the ISID.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/iscsi.c