From 2218ce1220aba62c515952ac2d79844bccea1ba9 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Thu, 22 Mar 2001 23:54:47 +0000 Subject: Add a new tool which summarizes packet counts by protocols, but organizes the protocols in the same hierarchical order in which they are found in the packet. The GUI needs some more refinement (placment of vertical scrollbar, style of GtkCTree, initial sizing of window). I need to add an option to honor/not honor the current display filter. svn path=/trunk/; revision=3162 --- proto_hier_stats.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 proto_hier_stats.h (limited to 'proto_hier_stats.h') 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 -- cgit v1.2.3