Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk decode_as_dlg.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, 3 Dec 2001 15:06:00 -0600 (CST)
guy         2001/12/03 15:06:00 CST

  Modified files:
    gtk                  decode_as_dlg.c 
  Log:
  "ptype" is always set, even if only to PT_NONE; it will be set to PT_TCP
  only there's TCP in the current frame and it will be set to PT_UDP only
  if there's UDP in the current frame.  As such, there's no need to check
  "ipproto" before checking "ptype" - and we should check "ptype" as well
  as "ipproto" when deciding whether we'll put up a "Decode As" dialog
  with anything in it.
  
  (Not that there's anything other than IPv4 or IPv6 over which we
  currently dissect TCP or UDP....)
  
  Revision  Changes    Path
  1.18      +21 -20    ethereal/gtk/decode_as_dlg.c