aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugin_api.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2002-01-05 04:12:17 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2002-01-05 04:12:17 +0000
commit0b9b02c6ea4bbf4a7792aa1493b507fd68e8a87b (patch)
treeac264635defc42eb14ee180db1b32d9b5032458c /plugins/plugin_api.h
parent3ed03cadf65462aa5253098f0df781022cb3a0ed (diff)
downloadwireshark-0b9b02c6ea4bbf4a7792aa1493b507fd68e8a87b.tar.gz
wireshark-0b9b02c6ea4bbf4a7792aa1493b507fd68e8a87b.tar.bz2
wireshark-0b9b02c6ea4bbf4a7792aa1493b507fd68e8a87b.zip
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
Diffstat (limited to 'plugins/plugin_api.h')
-rw-r--r--plugins/plugin_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/plugin_api.h b/plugins/plugin_api.h
index 60d0b26161..f9bc5af54b 100644
--- a/plugins/plugin_api.h
+++ b/plugins/plugin_api.h
@@ -1,7 +1,7 @@
/* plugin_api.h
* Routines for Ethereal plugins.
*
- * $Id: plugin_api.h,v 1.32 2001/12/03 10:00:23 guy Exp $
+ * $Id: plugin_api.h,v 1.33 2002/01/05 04:12:17 gram Exp $
*
* Ethereal - Network traffic analyzer
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -43,6 +43,7 @@
#define col_set_str (*p_col_set_str)
#define register_init_routine (*p_register_init_routine)
+#define register_postseq_cleanup_routine (*p_register_postseq_cleanup_routine)
#define conversation_new (*p_conversation_new)
#define find_conversation (*p_find_conversation)
#define match_strval (*p_match_strval)