Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-smtp.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: Sat, 11 Nov 2000 20:29:21 -0600 (CST)
guy         2000/11/11 20:29:21 CST

  Modified files:
    .                    packet-smtp.c 
  Log:
  Tvbuffify the SMTP dissector.
  
  Don't assume that we start out getting commands from the client - the
  capture may have started in the middle of a transaction, and we may be
  getting a message body from the client instead.  Only treat stuff as
  commands if it consists of four alphabetic characters followed either by
  an end-of-line or a space.
  
  Commands in SMTP are case-insensitive; when looking for "DATA", do a
  case-insensitive comparison.
  
  If the packet contains the message body, just put "Message Body" in the
  summary, don't put any of the message body itself in there.  If it's a
  command, put "Command:" in the summary before the first line of the
  command.
  
  When putting the message body into the protocol tree, give each line its
  own entry, rather than putting the entire body in as one entry.
  
  Don't put an entry into the protocol tree for a command parameter if
  there is no command parameter.
  
  Revision  Changes    Path
  1.9       +159 -81   ethereal/packet-smtp.c