/* summary_dlg.c
* Routines for capture file summary window
*
- * $Id: summary_dlg.c,v 1.7 2000/08/19 21:36:51 deniel Exp $
+ * $Id: summary_dlg.c,v 1.8 2000/08/21 18:20:19 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
snprintf(string_buff, SUM_STR_MAX, "Filtered packet count: %i", summary.filtered_count);
add_string_to_box(string_buff, data_box);
+ /* Marked Packet count */
+ snprintf(string_buff, SUM_STR_MAX, "Marked packet count: %i", summary.marked_count);
+ add_string_to_box(string_buff, data_box);
+
/* Packets per second */
if (seconds > 0){
snprintf(string_buff, SUM_STR_MAX, "Avg. packets/sec: %.3f", summary.packet_count/seconds);
/* summary.c
* Routines for capture file summary info
*
- * $Id: summary.c,v 1.18 2000/06/27 04:35:46 guy Exp $
+ * $Id: summary.c,v 1.19 2000/08/21 18:20:11 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
sum_tally->bytes += cur_frame->pkt_len;
if (cur_frame->flags.passed_dfilter)
sum_tally->filtered_count++;
+ if (cur_frame->flags.marked)
+ sum_tally->marked_count++;
+
}
void
st->stop_time = 0;
st->bytes = 0;
st->filtered_count = 0;
+ st->marked_count = 0;
/* initialize the tally */
if (cfile.plist != NULL) {
/* summary.h
* Definitions for capture file summary data
*
- * $Id: summary.h,v 1.4 1999/12/10 04:20:54 gram Exp $
+ * $Id: summary.h,v 1.5 2000/08/21 18:20:12 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
includes time before first packet
and after last packet */
int filtered_count; /* number of filtered packets */
+ int marked_count; /* number of marked packets */
int packet_count; /* total number of packets in trace */
const char *filename;
long file_length; /* file length in bytes */