Use "gfloat" and "gdouble", rather than "float" and "double", as the
[obnox/wireshark/wip.git] / summary.h
1 /* summary.h
2  * Definitions for capture file summary data
3  *
4  * $Id: summary.h,v 1.7 2002/02/08 10:07:34 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  *
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.
15  *
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.
20  *
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.
24  */
25
26 #ifndef __SUMMARY_H__
27 #define __SUMMARY_H__
28
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 */
39     const char  *filename;
40     long        file_length;    /* file length in bytes */
41     int         encap_type;     /* wiretap encapsulation type */
42     gboolean    has_snap;       /* TRUE if maximum capture packet length is known */
43     int         snap;           /* Maximum captured packet length */
44     gboolean    drops_known;    /* TRUE if number of packet drops is known */
45     guint32     drops;          /* number of packet drops */
46     const char  *iface;         /* interface name */
47     const char  *dfilter;       /* display filter */
48     const char  *cfilter;       /* capture filter */
49 } summary_tally;
50
51 void summary_fill_in(summary_tally *st);
52
53 #endif /* summary.h */
54
55
56
57
58