Update what we try to negotiate as header digest when we receive
a reply back from the target.
This commit is contained in:
@@ -735,9 +735,13 @@ iscsi_process_login_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
|||||||
if (!strcmp((char *)ptr + 13, "CRC32C")) {
|
if (!strcmp((char *)ptr + 13, "CRC32C")) {
|
||||||
iscsi->header_digest
|
iscsi->header_digest
|
||||||
= ISCSI_HEADER_DIGEST_CRC32C;
|
= ISCSI_HEADER_DIGEST_CRC32C;
|
||||||
|
iscsi->want_header_digest
|
||||||
|
= ISCSI_HEADER_DIGEST_CRC32C;
|
||||||
} else {
|
} else {
|
||||||
iscsi->header_digest
|
iscsi->header_digest
|
||||||
= ISCSI_HEADER_DIGEST_NONE;
|
= ISCSI_HEADER_DIGEST_NONE;
|
||||||
|
iscsi->want_header_digest
|
||||||
|
= ISCSI_HEADER_DIGEST_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user