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

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

From: Ronnie Sahlberg <sahlberg@xxxxxxxxxxxxxxxxx>
Date: Sat, 14 Jun 2003 19:35:50 -0500 (CDT)
sahlberg    2003/06/14 19:35:50 CDT

  Modified files:
    .                    packet-smb.c 
  Log:
  The MID field in the SMB header is in reality only ~10 bits in size
  so it is pretty common for MID values to be reused even in
  moderately sized captures.
  
  The test to compare that the command type between the request
  and reply is not sufficient for when most of the commands between the client
  and the server are the same (e.g. streaming Read/Write)
  
  Change the matching so that ONLY the first "response" we see for a certain
  open MID will be matched to the original request.
  
  I.e.  Prevent
  Read Request
  Read Reply
  [missing from capture] Read Request
  Read Reply
  
  From incorrectly matching the second reply (if it has a reused MID) with the
  first request.
  
  This makes the response time statistics a bit more reliable as well.
  
  Revision  Changes    Path
  1.354     +7 -7      ethereal/packet-smb.c