Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan packet.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: Fri, 12 Jan 2001 03:25:30 -0600 (CST)
guy         2001/01/12 03:25:30 CST

  Modified files:
    epan                 packet.c 
  Log:
  In all the routines that set "pinfo->current_proto" before calling a
  dissector, save the current value of "pinfo->current_proto" and restore
  it before returning; when you return, you're back in the dissector that
  called the routine to call a dissector, so the current protocol is the
  one for that dissector.  This may be important if a dissector calls a
  subdissector and, after it returns, processes stuff in the packet after
  the stuff dissected by the subdissectror.
  
  This means it's safe for "dissector_try_heuristic()" to set it before
  calling a heuristic dissector, as it'll put back the previous value when
  it returns.
  
  Revision  Changes    Path
  1.16      +36 -6     ethereal/epan/packet.c