guy 2002/08/19 22:21:43 CDT
Modified files:
. packet-scsi.c
Log:
Regularize the format of the "(size)" tags - the SCSI specs appear not
to put a space between the command name and the tag, and we weren't
doing that for all tags, so let's just get rid of the space.
Keep track of the device type and command type separately for commands.
Remember device types when we see an INQUIRY *response*, not a request,
and save the device type bits, rather than saving some random bit from the
INQUIRY *request* as the device type. This means we have to dissect
the INQUIRY response payload even if we're not building a protocol tree;
do so.
Put in a comment noting that the source and destination address are not
sufficient as a key to use for the device type, as a given network-layer
entity may have more than one SCSI device (and connections aren't good
enough, either).
Put the code to dissect MODE SELECT and MODE SENSE block descriptors
into a common routine. Have that routine dissect more than one block
descriptor. Have it take the device type and the "long LBA" flag as
arguments, so that it can correctly dissect the block descriptors.
Handle READ(6) and WRITE(6) on sequential devices.
Get rid of "dissect_scsi()" - it's not used.
Revision Changes Path
1.14 +411 -219 ethereal/packet-scsi.c