2 * Definitions for capture file summary data
4 * $Id: summary.h,v 1.6 2001/02/11 09:28:15 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 typedef struct _summary_tally {
30 guint32 bytes; /* total bytes */
31 double start_time; /* seconds, with msec resolution */
32 double stop_time; /* seconds, with msec resolution */
33 double elapsed_time; /* seconds, with msec resolution,
34 includes time before first packet
35 and after last packet */
36 int filtered_count; /* number of filtered packets */
37 int marked_count; /* number of marked packets */
38 int packet_count; /* total number of packets in trace */
40 long file_length; /* file length in bytes */
41 int encap_type; /* wiretap encapsulation type */
42 int snap; /* snapshot length */
43 gboolean drops_known; /* TRUE if number of packet drops is known */
44 guint32 drops; /* number of packet drops */
45 const char *iface; /* interface name */
46 const char *dfilter; /* display filter */
47 const char *cfilter; /* capture filter */
50 void summary_fill_in(summary_tally *st);
52 #endif /* summary.h */