Tvbuffify the BOOTP/DHCP dissector.
[obnox/wireshark/wip.git] / summary.h
1 /* summary.h
2  * Definitions for capture file summary data
3  *
4  * $Id: summary.h,v 1.5 2000/08/21 18:20:12 deniel 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     int         snap;           /* snapshot length */
43     int         drops;          /* number of packet drops */
44     const char  *iface;         /* interface name */
45     const char  *dfilter;       /* display filter */
46     const char  *cfilter;       /* capture filter */
47 } summary_tally;
48
49 void summary_fill_in(summary_tally *st);
50
51 #endif /* summary.h */
52
53
54
55
56