Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-iscsi.c packet-ndmp.c packet-scsi.c p
guy 2002/08/20 17:33:18 CDT
Modified files:
. packet-iscsi.c packet-ndmp.c
packet-scsi.c packet-scsi.h
Log:
Have "dissect_scsi_cdb()" take an argument that's a SCSI device type,
for the benefit of dissectors such as the NDMP dissector that can at
least supply a reasonable guess for the device type; more than one type
of device can be opened on the same host over NDMP, so the scheme
currently used by the SCSI dissector to remember device types in INQUIRY
replies won't work.
Have the iSCSI dissector supply SCSI_DEV_UNKNOWN, and have the NDMP
dissector supply SCSI_DEV_SMC for NDMP_SCSI_EXECUTE_CDB (under the
assumption that it's operating on a media changer) and supply
SCSI_DEV_SSC for NDMP_TAPE_EXECUTE_CDB (under the assumption that it's
operating on a tape device).
Fix memory leaks in the SCSI dissector.
Fix the dissectors for the SSC READ(6) and WRITE(6) CDBs to dissect the
transfer length as a 24-bit quantity.
Revision Changes Path
1.37 +2 -2 ethereal/packet-iscsi.c
1.22 +40 -9 ethereal/packet-ndmp.c
1.15 +74 -47 ethereal/packet-scsi.c
1.4 +30 -2 ethereal/packet-scsi.h