Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan conversation.c conversation.h 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: Tue, 27 Nov 2001 01:13:33 -0600 (CST)
guy         2001/11/27 01:13:33 CST

  Modified files:
    epan                 conversation.c conversation.h packet.c 
                         packet.h 
  Log:
  Change "conversation_set_dissector()" to take a dissector handle, rather
  than a pointer to a dissector function, as an argument.
  
  This means that the conversation dissector is called through
  "call_dissector()", so the dissector itself doesn't have to worry about
  checking whether the protocol is enabled or setting
  "pinfo->current_proto", so get rid of the code that does that in
  conversation dissectors.  Also, make the conversation dissectors static.
  
  Get rid of some direct calls to dissectors; replace them with calls
  through handles, and, again, get rid of code to check whether a protocol
  is enabled and set "pinfo->current_proto" where that code isn't needed.
  Make those dissectors static if they aren't already static.
  
  Add a routine "create_dissector_handle()" to create a dissector handle
  without registering it by name, if the dissector isn't used outside the
  module in which it's defined.
  
  Revision  Changes    Path
  1.16      +8 -7      ethereal/epan/conversation.c
  1.9       +4 -3      ethereal/epan/conversation.h
  1.43      +15 -1     ethereal/epan/packet.c
  1.42      +5 -1      ethereal/epan/packet.h