|
@@ -246,6 +246,9 @@ static int iscsi_open_connection ( struct iscsi_session *iscsi ) {
|
246
|
246
|
if ( iscsi->target_username )
|
247
|
247
|
iscsi->status |= ISCSI_STATUS_AUTH_REVERSE_REQUIRED;
|
248
|
248
|
|
|
249
|
+ /* Assign new ISID */
|
|
250
|
+ iscsi->isid_iana_qual = ( random() & 0xffff );
|
|
251
|
+
|
249
|
252
|
/* Assign fresh initiator task tag */
|
250
|
253
|
iscsi_new_itt ( iscsi );
|
251
|
254
|
|
|
@@ -707,7 +710,7 @@ static void iscsi_start_login ( struct iscsi_session *iscsi ) {
|
707
|
710
|
ISCSI_SET_LENGTHS ( request->lengths, 0, len );
|
708
|
711
|
request->isid_iana_en = htonl ( ISCSI_ISID_IANA |
|
709
|
712
|
IANA_EN_FEN_SYSTEMS );
|
710
|
|
- request->isid_iana_qual = ( random() & 0xffff );
|
|
713
|
+ request->isid_iana_qual = htons ( iscsi->isid_iana_qual );
|
711
|
714
|
/* tsih left as zero */
|
712
|
715
|
request->itt = htonl ( iscsi->itt );
|
713
|
716
|
/* cid left as zero */
|