Initialize all the fields of the "frame_data" structure, so that, for
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Aug 2000 03:33:41 +0000 (03:33 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Aug 2000 03:33:41 +0000 (03:33 +0000)
example, "fdata->pfd" doesn't contain junk that upsets dissectors that
try to attach data to the frame (not that it does them much good in
Tethereal, as the frame is never revisited).

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

tethereal.c

index 75543b3109108c0ddcf8b753d76b445cfcb47cf8..c25bcf9d93e39f2a39eeb214739db89a1d994f63 100644 (file)
@@ -1,6 +1,6 @@
 /* tethereal.c
  *
- * $Id: tethereal.c,v 1.42 2000/08/19 18:20:59 deniel Exp $
+ * $Id: tethereal.c,v 1.43 2000/08/22 03:33:41 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -802,17 +802,19 @@ fill_in_fdata(frame_data *fdata, capture_file *cf,
 
   fdata->next = NULL;
   fdata->prev = NULL;
-  fdata->pkt_len  = phdr->len;
-  fdata->cap_len  = phdr->caplen;
+  fdata->pfd = NULL;
+  fdata->num = cf->count;
+  fdata->pkt_len = phdr->len;
+  fdata->cap_len = phdr->caplen;
   fdata->file_off = offset;
+  fdata->cinfo = NULL;
   fdata->lnk_t = phdr->pkt_encap;
   fdata->abs_secs  = phdr->ts.tv_sec;
   fdata->abs_usecs = phdr->ts.tv_usec;
+  fdata->flags.passed_dfilter = 0;
   fdata->flags.encoding = CHAR_ASCII;
   fdata->flags.visited = 0;
-  fdata->cinfo = NULL;
-
-  fdata->num = cf->count;
+  fdata->flags.marked = 0;
 
   /* If we don't have the time stamp of the first packet in the
      capture, it's because this is the first packet.  Save the time