wireshark/plugins
Gilbert Ramirez 0b9b02c6ea Long NCP traces can easily have many packets whose "uniqueness"
variables wrap-around. Since the request/reply packets are related via
a hash based on these uniqueness variables, long NCP traces can
have mis-matches reqeust/reply records.

Thus, only do the hash-lookup for the reply packet during the first
sequential scan of the trace file. Once the pertinent info is found,
store it in the packet's private data area.

Since the memory allocated for the hash and for the structures that make
up the keys are no longer needed after the first sequential run through
the trace file, arrange to free that memory after the first sequential
run. Similar to the register_init_routine() that allows dissectors
to register callbacks for calling *before* a capture file is loaded,
set up a register_postseq_cleanup_routine() function that allows
dissectors to register callbacks for calling *after* the first
sequential run-through of the trace file is made. This is not
a *final* cleanup callback, since Ethereal will still have that trace file
open for random-access reading.

I didn't have tethereal call postseq_cleanup_all_protocols() since
tethereal doesn't keep the trace file open for random-access reading.
I could easily be swayed to make tethereal call that function, however.

svn path=/trunk/; revision=4484
2002-01-05 04:12:17 +00:00
..
giop From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors are 2001-12-19 08:59:08 +00:00
gryphon From Motonori Shindo: 2001-12-12 01:29:13 +00:00
mgcp From Motonori Shindo: 2001-12-12 01:29:13 +00:00
.cvsignore Updated to ignore Win32 detritus 2000-09-13 22:03:52 +00:00
Makefile.am Sigh. Well, if you make the function declarations external, that means 2001-10-31 10:40:58 +00:00
Makefile.nmake From Motonori Shindo: 2001-12-12 01:29:13 +00:00
plugin_api.c Long NCP traces can easily have many packets whose "uniqueness" 2002-01-05 04:12:17 +00:00
plugin_api.h Long NCP traces can easily have many packets whose "uniqueness" 2002-01-05 04:12:17 +00:00
plugin_api_defs.h Long NCP traces can easily have many packets whose "uniqueness" 2002-01-05 04:12:17 +00:00
plugin_table.h Long NCP traces can easily have many packets whose "uniqueness" 2002-01-05 04:12:17 +00:00