Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-scsi.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Aug 2002 08:06:45 -0500 (CDT)
guy         2002/08/19 08:06:45 CDT

  Modified files:
    .                    packet-scsi.c 
  Log:
  Fix the reporting of the "PS" bit in SCSI mode pages.
  
  For unknown mode pages, make the "Unknown Page" tree item not include
  the page code and length, as those were put into the tree already - have
  it just include the contents of the page.
  
  For MODE SELECT, use the supplied payload length rather than the mode
  data length, as the mode data length is reserved in MODE SELECT (it's
  implied by the total data length; in MODE SENSE, the CDB contains the
  buffer size, but the target can return fewer bytes than that, so the
  mode data length is meaningful).
  
  Add additional checks of the remaining data length when parsing MODE
  SELECT and MODE SENSE, and fix up the checks that were there already.
  
  The density code comes *before* the number of blocks in a block
  descriptor, and the number of blocks and block length are 3 bytes long
  for both the 6-byte and 10-byte versions of MODE SELECT and MODE SENSE.
  
  Revision  Changes    Path
  1.13      +259 -90   ethereal/packet-scsi.c