aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-24 06:45:14 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-24 06:45:14 +0000
commitca8f79df3d8d042806e24a70a738bd5c92b2dc90 (patch)
tree8d38b419307a3b72caa6f51744641c2cf2772ce1 /tethereal.c
parentb767826991ba30b900ae917a290927871bc62976 (diff)
Get rid of "init_all_protocols()"; instead, have a routine
"init_dissection()" which calls "epan_conversation_init()", does the work that "init_all_protocols()" did, and then calls "reassemble_init()", so that the standard sequence of dissection initialization is done in one place, rather than having multiple places call the same sequence of routines. svn path=/trunk/; revision=4797
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/tethereal.c b/tethereal.c
index 33d7b82a7e..3c0b187272 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.125 2002/02/24 06:01:01 guy Exp $
+ * $Id: tethereal.c,v 1.126 2002/02/24 06:45:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -102,7 +102,6 @@
#include "pcap-util.h"
#endif
#include <epan/conversation.h>
-#include "reassemble.h"
#include <epan/plugins.h>
#include "register.h"
#include "conditions.h"
@@ -811,17 +810,8 @@ capture(volatile int packet_count, int out_file_type)
struct pcap_stat stats;
gboolean dump_ok;
- /* Initialize the table of conversations. */
- epan_conversation_init();
-
- /* Initialize protocol-specific variables */
- init_all_protocols();
-
- /* Initialize the common data structures for fragment reassembly.
- Must be done *after* "init_all_protocols()", as "init_all_protocols()"
- may free up space for fragments, which it finds by using the
- data structures that "reassemble_init()" frees. */
- reassemble_init();
+ /* Initialize all data structures used for dissection. */
+ init_dissection();
ld.linktype = WTAP_ENCAP_UNKNOWN;
ld.pdh = NULL;
@@ -1748,17 +1738,8 @@ open_cap_file(char *fname, gboolean is_tempfile, capture_file *cf)
/* The open succeeded. Fill in the information for this file. */
- /* Initialize the table of conversations. */
- epan_conversation_init();
-
- /* Initialize protocol-specific variables */
- init_all_protocols();
-
- /* Initialize the common data structures for fragment reassembly.
- Must be done *after* "init_all_protocols()", as "init_all_protocols()"
- may free up space for fragments, which it finds by using the
- data structures that "reassemble_init()" frees. */
- reassemble_init();
+ /* Initialize all data structures used for dissection. */
+ init_dissection();
cf->wth = wth;
cf->filed = fd;