Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
proto_hier_stats.h
Go to the documentation of this file.
1
10#ifndef __UI_PROTO_HIER_STATS_H__
11#define __UI_PROTO_HIER_STATS_H__
12
13#include <epan/proto.h>
14#include <epan/cfile.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
24typedef struct {
25 const header_field_info *hfinfo;
26 unsigned num_pkts_total;
27 unsigned num_pdus_total;
28 unsigned num_pkts_last;
29 unsigned num_bytes_total;
30 unsigned num_bytes_last;
31 unsigned last_pkt;
33
34
35typedef struct {
36 unsigned tot_packets;
37 unsigned tot_bytes;
38 GNode *stats_tree;
39 double first_time; /* seconds (msec resolution) of first packet */
40 double last_time; /* seconds (msec resolution) of last packet */
42
50
61
62#ifdef __cplusplus
63}
64#endif /* __cplusplus */
65
66#endif /* __UI_PROTO_HIER_STATS_H__ */
void ph_stats_free(ph_stats_t *ps)
Frees memory allocated for a protocol hierarchy statistics structure.
Definition proto_hier_stats.c:371
ph_stats_t * ph_stats_new(capture_file *cf)
Create a new protocol hierarchy statistics object.
Definition proto_hier_stats.c:211
Definition cfile.h:68
Definition proto.h:762
Definition stats_tree_priv.h:108
Definition proto_hier_stats.h:24
Definition proto_hier_stats.h:35