wireshark/proto_hier_stats.h
Gilbert Ramirez 2218ce1220 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
2001-03-22 23:54:47 +00:00

28 lines
410 B
C

#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