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

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, 7 Jan 2002 23:52:07 -0600 (CST)
guy         2002/01/07 23:52:06 CST

  Modified files:
    .                    packet-smb.c smb.h 
  Log:
  Match requests and responses using both the MID and the PID; the SNIA
  CIFS draft spec speaks of both being used:
  
  	The multiplex ID (Mid) is used along with the Pid to allow
  	multiplexing the single client and server connection among the
  	client's multiple processes, threads, and requests per thread.
  	Clients may have many outstanding requests (up to the negotiated
  	number, MaxMpxCount) at one time.  Servers MAY respond to
  	requests in any order, but a response message MUST always
  	contain the same Mid and Pid values as the corresponding request
  	message.  The client MUST NOT have multiple outstanding requests
  	to a server with the same Mid and Pid.
  
  and I have seen a capture where more than one PID is used on a given
  connection and where the same MID is used with two different PIDs.
  
  Get rid of the "mid" field in the "smb_info_t" structure - the MID is
  not used outside "dissect_smb()".
  
  Revision  Changes    Path
  1.191     +49 -40    ethereal/packet-smb.c
  1.32      +2 -2      ethereal/smb.h