diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-03 10:49:03 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-03 10:49:03 +0000 |
commit | b9ce30cd35b1a499c38b34b51900c7a6d195fd9d (patch) | |
tree | 0808fac9442fde1325428c3bf52fd3fd92ffbc26 /tethereal.c | |
parent | bb21d8c03cb8928d5d50b9b8533fe53cf756f9ba (diff) |
And for Cal,
Ethereal presents a column to display culmulative bytes into the capture.
A new column type is added : Culmulative Bytes.
While PacketLength column type specifies the number of bytes in the current packet,
Culmulative Bytes specifies the culmulative number of bytes from the start of the capture.
svn path=/trunk/; revision=8359
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c index c6dfa7a4e0..ca7cde4858 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.191 2003/08/07 00:41:27 guy Exp $ + * $Id: tethereal.c,v 1.192 2003/09/03 10:49:02 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -116,6 +116,7 @@ static gboolean decode; static gboolean verbose; static gboolean print_hex; static gboolean line_buffered; +static guint32 cul_bytes = 0; #ifdef HAVE_LIBPCAP typedef struct _loop_data { @@ -2031,6 +2032,8 @@ fill_in_fdata(frame_data *fdata, capture_file *cf, fdata->pfd = NULL; fdata->num = cf->count; fdata->pkt_len = phdr->len; + cul_bytes += phdr->len; + fdata->cul_bytes = cul_bytes; fdata->cap_len = phdr->caplen; fdata->file_off = offset; fdata->lnk_t = phdr->pkt_encap; |