Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal Makefile.am packet-clnp.c packet-eth.c
guy 2000/05/05 04:32:26 CDT
Modified files:
. Makefile.am packet-clnp.c packet-eth.c
packet-giop.c packet-h1.c packet-tcp.c
packet-yhoo.c packet-yhoo.h packet.c
packet.h plugins.c
Removed files:
. packet-giop.h packet-h1.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.193 +1 -3 ethereal/Makefile.am
1.6 +10 -5 ethereal/packet-clnp.c
1.32 +4 -1 ethereal/packet-eth.c
1.12 +25 -12 ethereal/packet-giop.c
1.6 +8 -3 ethereal/packet-h1.c
1.73 +6 -18 ethereal/packet-tcp.c
1.6 +29 -4 ethereal/packet-yhoo.c
1.6 +1 -3 ethereal/packet-yhoo.h
1.79 +65 -16 ethereal/packet.c
1.183 +28 -4 ethereal/packet.h
1.15 +5 -1 ethereal/plugins.c