mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Temporary attach AHS to BHS to calculate header digest.
MFC after: 2 weeks
This commit is contained in:
parent
937f8ddf10
commit
875ac6cfac
1 changed files with 3 additions and 3 deletions
|
|
@ -403,10 +403,10 @@ icl_pdu_check_header_digest(struct icl_pdu *request, size_t *availablep)
|
|||
}
|
||||
*availablep -= ISCSI_HEADER_DIGEST_SIZE;
|
||||
|
||||
/*
|
||||
* XXX: Handle AHS.
|
||||
*/
|
||||
/* Temporary attach AHS to BHS to calculate header digest. */
|
||||
request->ip_bhs_mbuf->m_next = request->ip_ahs_mbuf;
|
||||
valid_digest = icl_mbuf_to_crc32c(request->ip_bhs_mbuf);
|
||||
request->ip_bhs_mbuf->m_next = NULL;
|
||||
if (received_digest != valid_digest) {
|
||||
ICL_WARN("header digest check failed; got 0x%x, "
|
||||
"should be 0x%x", received_digest, valid_digest);
|
||||
|
|
|
|||
Loading…
Reference in a new issue