Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
proto_hier_stats.h
Go to the documentation of this file.
1
9
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
23
27typedef struct {
29 unsigned num_pkts_total;
30 unsigned num_pdus_total;
31 unsigned num_pkts_last;
33 unsigned num_bytes_last;
34 unsigned last_pkt;
36
40typedef struct {
41 unsigned tot_packets;
42 unsigned tot_bytes;
43 GNode *stats_tree;
44 double first_time;
45 double last_time;
47
55
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /* __UI_PROTO_HIER_STATS_H__ */
struct _capture_file capture_file
Represents a capture file and its associated metadata.
struct _header_field_info header_field_info
Definition proto.h:770
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
Accumulates per-protocol packet and byte statistics for a single node in the protocol hierarchy tree.
Definition proto_hier_stats.h:27
unsigned num_pdus_total
Definition proto_hier_stats.h:30
const header_field_info * hfinfo
Definition proto_hier_stats.h:28
unsigned num_bytes_last
Definition proto_hier_stats.h:33
unsigned num_bytes_total
Definition proto_hier_stats.h:32
unsigned num_pkts_last
Definition proto_hier_stats.h:31
unsigned num_pkts_total
Definition proto_hier_stats.h:29
unsigned last_pkt
Definition proto_hier_stats.h:34
Holds aggregate protocol hierarchy statistics for a complete capture or filtered set of packets.
Definition proto_hier_stats.h:40
unsigned tot_bytes
Definition proto_hier_stats.h:42
double first_time
Definition proto_hier_stats.h:44
unsigned tot_packets
Definition proto_hier_stats.h:41
double last_time
Definition proto_hier_stats.h:45
GNode * stats_tree
Definition proto_hier_stats.h:43