change TRY_SCSI_SHORT_TRANSFER to use the allocation length specified in the CDB
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 2 Apr 2006 22:50:46 +0000 (22:50 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 2 Apr 2006 22:50:46 +0000 (22:50 +0000)
commit5e116863652506787dbac4b2c336e1a44c5e2bf7
tree8af7a73dff3f5b1b5e087503e5fddc9b475c9be1
parent8287fb1f3f9501f2c42b668583e93d6d4c5a3c6f
 change TRY_SCSI_SHORT_TRANSFER   to use the allocation length specified in the CDB
instead of the allocation length from the data pdu   since sometimes the datapdu will be completely empty and thus we cant extract it from the data pdu.
(unclear if this is really allowed by scsi   but anyway)
this should make the scsi transfer length checking more correct.

update mmc  getconfiguration   and spc  inquiry  to use these macros
and flag these packets that are short due to a too small alloc_len
as truncated due to scsi  and not being short/malformed packets.

at the same time,  get rid of a few horrible   offset+x   in the inquiry dissector and replace with proper offset incrementation instead.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17784 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-scsi.c