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
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
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>
|
2017-12-03 18:53:58 +00:00
|
|
|
#include "cfile.h"
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2017-11-29 00:03:11 +00:00
|
|
|
header_field_info *hfinfo;
|
|
|
|
guint num_pkts_total;
|
|
|
|
guint num_pkts_last;
|
|
|
|
guint num_bytes_total;
|
|
|
|
guint num_bytes_last;
|
2001-03-22 23:54:47 +00:00
|
|
|
} ph_stats_node_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-11-29 00:03:11 +00:00
|
|
|
guint tot_packets;
|
|
|
|
guint tot_bytes;
|
|
|
|
GNode *stats_tree;
|
|
|
|
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;
|
|
|
|
|
2017-12-03 18:53:58 +00:00
|
|
|
ph_stats_t *ph_stats_new(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
|
|
|
/*
|
2017-11-29 00:03:11 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-10-12 18:56:12 +00:00
|
|
|
*
|
2017-11-29 00:03:11 +00:00
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
2014-10-12 18:56:12 +00:00
|
|
|
* tab-width: 8
|
2017-11-29 00:03:11 +00:00
|
|
|
* indent-tabs-mode: nil
|
2014-10-12 18:56:12 +00:00
|
|
|
* End:
|
|
|
|
*
|
2017-11-29 00:03:11 +00:00
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
2014-10-12 18:56:12 +00:00
|
|
|
*/
|