Commit 5f4ab0d ("[iscsi] Randomise a portion of the ISID to force new session instantiation") introduced a regression by randomising the ISID on each call to iscsi_start_login(), which may be called more than once per connection, rather than on each call to iscsi_open_connection(), which is guaranteed to be called only once per connection. This is incorrect behaviour that causes our connection to be rejected by some iSCSI targets (observed with a COMSTAR target under OpenSolaris). Fix by generating the ISID in iscsi_open_connection(), and storing the randomised ISID as part of the session state. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
539 |
|
539 |
|
540 |
|
540 |
|
541 |
|
541 |
|
|
542 |
|
|
|
543 |
|
|
|
544 |
|
|
|
545 |
|
|
|
546 |
|
|
|
547 |
|
|
542 |
|
548 |
|
543 |
|
549 |
|
544 |
|
550 |
|
|
|
||
246 |
|
246 |
|
247 |
|
247 |
|
248 |
|
248 |
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
249 |
|
252 |
|
250 |
|
253 |
|
251 |
|
254 |
|
|
|
||
707 |
|
710 |
|
708 |
|
711 |
|
709 |
|
712 |
|
710 |
|
|
|
|
713 |
|
|
711 |
|
714 |
|
712 |
|
715 |
|
713 |
|
716 |
|