aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-22 03:33:41 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-22 03:33:41 +0000
commitfaccb9665cf8f6b969c07acdcbfeb96b69704b1b (patch)
tree68767a858d14b5dbe80127d80fdcf774cdaba6a4 /tethereal.c
parent3c553f2ec7fe8381d462187d58890810ccb5a7ee (diff)
Initialize all the fields of the "frame_data" structure, so that, for
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). svn path=/trunk/; revision=2331
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tethereal.c b/tethereal.c
index 75543b3109..c25bcf9d93 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -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