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