diff options
author | mav <mav@FreeBSD.org> | 2017-02-28 06:28:17 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-02-28 06:28:17 +0000 |
commit | c88f71b70b0172e2697579dea6b19bc127acc0bd (patch) | |
tree | f5a7ad6cc7bdfdd3bb9dcd555bd15c98f1be586e | |
parent | 22a9b02a3ecd60fb0129199348a53e8bcadebbdf (diff) | |
download | FreeBSD-src-c88f71b70b0172e2697579dea6b19bc127acc0bd.zip FreeBSD-src-c88f71b70b0172e2697579dea6b19bc127acc0bd.tar.gz |
MFC r313738: Temporary attach AHS to BHS to calculate header digest.
-rw-r--r-- | sys/dev/iscsi/icl_soft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c index c6e2d06..bcb4387 100644 --- a/sys/dev/iscsi/icl_soft.c +++ b/sys/dev/iscsi/icl_soft.c @@ -389,10 +389,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); |