diff options
Diffstat (limited to 'proto_hier_stats.h')
-rw-r--r-- | proto_hier_stats.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/proto_hier_stats.h b/proto_hier_stats.h new file mode 100644 index 0000000000..257c9e19eb --- /dev/null +++ b/proto_hier_stats.h @@ -0,0 +1,27 @@ + +#ifndef PROTO_HIER_STATS_H +#define PROTO_HIER_STATS_H + +#include "proto.h" + +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; +} ph_stats_t; + + +ph_stats_t* ph_stats_new(void); + +void ph_stats_free(ph_stats_t *ps); + +#endif |