2001-06-12 06:32:39 +00:00
|
|
|
/* proto_hier_stats.h
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-06-12 06:32:39 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2001-06-12 06:32:39 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2001-06-12 06:32:39 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2001-06-12 06:32:39 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2001-06-12 06:32:39 +00:00
|
|
|
*/
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2014-06-30 21:08:24 +00:00
|
|
|
#ifndef __UI_PROTO_HIER_STATS_H__
|
|
|
|
#define __UI_PROTO_HIER_STATS_H__
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2015-02-03 16:39:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
* Protocol Hierarchy Statistics
|
|
|
|
*/
|
|
|
|
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/proto.h>
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
header_field_info *hfinfo;
|
|
|
|
guint num_pkts_total;
|
|
|
|
guint num_pkts_last;
|
|
|
|
guint num_bytes_total;
|
|
|
|
guint num_bytes_last;
|
|
|
|
} ph_stats_node_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
guint tot_packets;
|
|
|
|
guint tot_bytes;
|
|
|
|
GNode *stats_tree;
|
2004-03-17 21:48:15 +00:00
|
|
|
double first_time; /* seconds (msec resolution) of first packet */
|
|
|
|
double last_time; /* seconds (msec resolution) of last packet */
|
2001-03-22 23:54:47 +00:00
|
|
|
} ph_stats_t;
|
|
|
|
|
2015-02-03 16:39:14 +00:00
|
|
|
struct _capture_file;
|
|
|
|
ph_stats_t *ph_stats_new(struct _capture_file *cf);
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
void ph_stats_free(ph_stats_t *ps);
|
|
|
|
|
2015-02-03 16:39:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2014-10-14 19:58:21 +00:00
|
|
|
#endif /* __UI_PROTO_HIER_STATS_H__ */
|
|
|
|
|
2014-10-12 18:56:12 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|