Initialize per-dissection data structures before doing a capture, as
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Jan 2000 05:30:02 +0000 (05:30 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Jan 2000 05:30:02 +0000 (05:30 +0000)
well as before reading a capture file - if the user didn't specify that
the capture should be saved to a file, it'll be dissected as it arrives.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1568 f5534014-38df-0310-8fa8-9805f1628bb7

tethereal.c

index 0018c8e26937666955790885200ec530c3ccdce7..73f06901bc30fd48c2f788331a8745fb6ff45540 100644 (file)
@@ -1,6 +1,6 @@
 /* tethereal.c
  *
- * $Id: tethereal.c,v 1.15 2000/01/24 05:13:45 guy Exp $
+ * $Id: tethereal.c,v 1.16 2000/01/26 05:30:02 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -458,6 +458,12 @@ capture(int packet_count, int out_file_type)
   int         err, inpkts;
   char        errmsg[1024+1];
 
+  /* Initialize the table of conversations. */
+  conversation_init();
+
+  /* Initialize protocol-specific variables */
+  init_all_protocols();
+
   ld.linktype       = WTAP_ENCAP_UNKNOWN;
   ld.pdh            = NULL;