forked from osmocom/wireshark
![Gilbert Ramirez](/assets/img/avatar_default.png)
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
28 lines
410 B
C
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
|