]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[iscsi] Send any padding inline with the data segment
authorMichael Brown <mcb30@ipxe.org>
Thu, 1 Mar 2012 16:26:38 +0000 (16:26 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 Mar 2012 16:33:05 +0000 (16:33 +0000)
commit1d293776ea290ae1f4d1228f3278030facf97a4b
treec58bcf0708a3c8074cca8f77fb4b6c310b883178
parentcb10137e1992ba8fcd035b228a6a58ba3b40c3a2
[iscsi] Send any padding inline with the data segment

Some iSCSI targets respond to a PDU before receiving the padding
bytes.  If the target responds quickly enough, this can cause iPXE to
start processing a new TX PDU before the padding bytes have been sent,
which results in a protocol violation.

Fix by always transmitting the padding bytes along with the data
segment.

Originally-fixed-by: Shyam Iyer <shyam_iyer@dell.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/iscsi.h
src/net/tcp/iscsi.c