Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/plugins plugin_api.c plugin_api.h pl

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 5 May 2000 04:32:52 -0500 (CDT)
guy         2000/05/05 04:32:45 CDT

  Modified files:
    plugins              plugin_api.c plugin_api.h plugin_table.h 
  Log:
  Add routines to:
  
  	register lists of "heuristic" dissectors, which are handed a
  	frame that may or may contain a payload for the protocol they
  	dissect, and that return FALSE if it's not or dissect the packet
  	and return TRUE if it is;
  
  	add a dissector to such a list;
  
  	go through such a list, calling each dissector until either a
  	dissector returns TRUE, in which case the routine returns TRUE,
  	or it runs out of entries in the list, in which case the routine
  	returns FALSE.
  
  Have lists of heuristic dissectors for TCP and for COTP when used with
  the Inactive Subset of CLNP, and add the GIOP and Yahoo Messenger
  dissectors to the first list and the Sinec H1 dissector to the second
  list.
  
  Make the dissector name argument to "dissector_add()" and
  "dissector_delete()" a "const char *" rarther than just a "char *".
  
  Add "heur_dissector_add()", the routine to add a heuristic dissector to
  a list of heuristic dissectors, to the set of routines we can export to
  plugins through a table on platforms where dynamically-loaded code can't
  call stuff in the main program, and initialize the element in the table
  in question for "dissector_add()" (which we'd forgotten to do).
  
  Revision  Changes    Path
  1.7       +2 -1      ethereal/plugins/plugin_api.c
  1.5       +3 -1      ethereal/plugins/plugin_api.h
  1.3       +6 -2      ethereal/plugins/plugin_table.h