| 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
17 extern "C" {
18#endif /* __cplusplus */
19
23
27 typedef struct {
28 const header_field_info *hfinfo;
29 unsigned num_pkts_total;
30 unsigned num_pdus_total;
31 unsigned num_pkts_last;
32 unsigned num_bytes_total;
33 unsigned num_bytes_last;
34 unsigned last_pkt;
35} ph_stats_node_t;
36
40 typedef struct {
41 unsigned tot_packets;
42 unsigned tot_bytes;
43 GNode *stats_tree;
44 double first_time;
45 double last_time;
46} ph_stats_t;
47
54 ph_stats_t *ph_stats_new(capture_file *cf);
55
65 void ph_stats_free(ph_stats_t *ps);
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /* __UI_PROTO_HIER_STATS_H__ */
cfile.h
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
header_field_info
struct _header_field_info header_field_info
Definition proto.h:770
proto.h
ph_stats_free
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_new
ph_stats_t * ph_stats_new(capture_file *cf)
Create a new protocol hierarchy statistics object.
Definition proto_hier_stats.c:211
ph_stats_node_t
Accumulates per-protocol packet and byte statistics for a single node in the protocol hierarchy tree.
Definition proto_hier_stats.h:27
ph_stats_node_t::num_pdus_total
unsigned num_pdus_total
Definition proto_hier_stats.h:30
ph_stats_node_t::hfinfo
const header_field_info * hfinfo
Definition proto_hier_stats.h:28
ph_stats_node_t::num_bytes_last
unsigned num_bytes_last
Definition proto_hier_stats.h:33
ph_stats_node_t::num_bytes_total
unsigned num_bytes_total
Definition proto_hier_stats.h:32
ph_stats_node_t::num_pkts_last
unsigned num_pkts_last
Definition proto_hier_stats.h:31
ph_stats_node_t::num_pkts_total
unsigned num_pkts_total
Definition proto_hier_stats.h:29
ph_stats_node_t::last_pkt
unsigned last_pkt
Definition proto_hier_stats.h:34
ph_stats_t
Holds aggregate protocol hierarchy statistics for a complete capture or filtered set of packets.
Definition proto_hier_stats.h:40
ph_stats_t::tot_bytes
unsigned tot_bytes
Definition proto_hier_stats.h:42
ph_stats_t::first_time
double first_time
Definition proto_hier_stats.h:44
ph_stats_t::tot_packets
unsigned tot_packets
Definition proto_hier_stats.h:41
ph_stats_t::last_time
double last_time
Definition proto_hier_stats.h:45
ph_stats_t::stats_tree
GNode * stats_tree
Definition proto_hier_stats.h:43