From b9ce30cd35b1a499c38b34b51900c7a6d195fd9d Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 3 Sep 2003 10:49:03 +0000 Subject: 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 --- epan/column-utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'epan/column-utils.c') diff --git a/epan/column-utils.c b/epan/column-utils.c index 3b6634af2b..9f68dda50b 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -1,7 +1,7 @@ /* column-utils.c * Routines for column utilities. * - * $Id: column-utils.c,v 1.37 2003/08/26 06:40:25 guy Exp $ + * $Id: column-utils.c,v 1.38 2003/09/03 10:49:02 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -830,6 +830,10 @@ fill_in_columns(packet_info *pinfo) strcpy(pinfo->cinfo->col_expr[i], "frame.pkt_len"); strcpy(pinfo->cinfo->col_expr_val[i], pinfo->cinfo->col_buf[i]); break; + case COL_CULMULATIVE_BYTES: + snprintf(pinfo->cinfo->col_buf[i], COL_MAX_LEN, "%u", pinfo->fd->cul_bytes); + pinfo->cinfo->col_data[i] = pinfo->cinfo->col_buf[i]; + break; case COL_OXID: snprintf(pinfo->cinfo->col_buf[i], COL_MAX_LEN, "0x%x", pinfo->oxid); -- cgit v1.2.3