aboutsummaryrefslogtreecommitdiffstats
path: root/proto_hier_stats.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-03-22 23:54:47 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-03-22 23:54:47 +0000
commit2218ce1220aba62c515952ac2d79844bccea1ba9 (patch)
tree270db3ea5620aa7ca4d307425c12db2caf72a9b8 /proto_hier_stats.h
parentc2b31166ed69b75a2a3eb535ccfe8700556bbb79 (diff)
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
Diffstat (limited to 'proto_hier_stats.h')
-rw-r--r--proto_hier_stats.h27
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