![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
#include <glib.h>
#include <epan/epan.h>
#include <epan/packet_info.h>
#include <epan/tap.h>
#include <epan/stat_groups.h>
#include "ws_symbol_export.h"
Go to the source code of this file.
Typedefs | |
typedef struct _stats_tree | stats_tree |
typedef tap_packet_status(* | stat_tree_packet_cb) (stats_tree *, packet_info *, epan_dissect_t *, const void *, tap_flags_t flags) |
typedef void(* | stat_tree_init_cb) (stats_tree *) |
typedef void(* | stat_tree_cleanup_cb) (stats_tree *) |
typedef enum _stat_node_datatype | stat_node_datatype |
typedef struct _stats_tree_cfg | stats_tree_cfg |
typedef enum _manip_node_mode | manip_node_mode |
Enumerations | |
enum | _stat_node_datatype { STAT_DT_INT , STAT_DT_FLOAT } |
enum | _manip_node_mode { MN_INCREASE , MN_SET , MN_AVERAGE , MN_AVERAGE_NOTICK , MN_SET_FLAGS , MN_CLEAR_FLAGS } |
Functions | |
WS_DLL_PUBLIC stats_tree_cfg * | stats_tree_register (const gchar *tapname, const gchar *abbr, const gchar *path, guint flags, stat_tree_packet_cb packet, stat_tree_init_cb init, stat_tree_cleanup_cb cleanup) |
WS_DLL_PUBLIC stats_tree_cfg * | stats_tree_register_plugin (const gchar *tapname, const gchar *abbr, const gchar *path, guint flags, stat_tree_packet_cb packet, stat_tree_init_cb init, stat_tree_cleanup_cb cleanup) |
WS_DLL_PUBLIC void | stats_tree_set_group (stats_tree_cfg *st_config, register_stat_group_t stat_group) |
WS_DLL_PUBLIC void | stats_tree_set_first_column_name (stats_tree_cfg *st_config, const char *column_name) |
WS_DLL_PUBLIC int | stats_tree_parent_id_by_name (stats_tree *st, const gchar *parent_name) |
WS_DLL_PUBLIC int | stats_tree_create_node (stats_tree *st, const gchar *name, int parent_id, stat_node_datatype datatype, gboolean with_children) |
WS_DLL_PUBLIC int | stats_tree_create_node_by_pname (stats_tree *st, const gchar *name, const gchar *parent_name, stat_node_datatype datatype, gboolean with_children) |
WS_DLL_PUBLIC int | stats_tree_create_range_node (stats_tree *st, const gchar *name, int parent_id,...) |
WS_DLL_PUBLIC int | stats_tree_create_range_node_string (stats_tree *st, const gchar *name, int parent_id, int num_str_ranges, gchar **str_ranges) |
WS_DLL_PUBLIC int | stats_tree_range_node_with_pname (stats_tree *st, const gchar *name, const gchar *parent_name,...) |
WS_DLL_PUBLIC int | stats_tree_tick_range (stats_tree *st, const gchar *name, int parent_id, int value_in_range) |
WS_DLL_PUBLIC int | stats_tree_create_pivot (stats_tree *st, const gchar *name, int parent_id) |
WS_DLL_PUBLIC int | stats_tree_create_pivot_by_pname (stats_tree *st, const gchar *name, const gchar *parent_name) |
WS_DLL_PUBLIC int | stats_tree_tick_pivot (stats_tree *st, int pivot_id, const gchar *pivot_value) |
void | stats_tree_cleanup (void) |
WS_DLL_PUBLIC int | stats_tree_manip_node_int (manip_node_mode mode, stats_tree *st, const gchar *name, int parent_id, gboolean with_children, gint value) |
WS_DLL_PUBLIC int | stats_tree_manip_node_float (manip_node_mode mode, stats_tree *st, const gchar *name, int parent_id, gboolean with_children, gfloat value) |
A counter tree API for Wireshark dissectors 2005, Luis E. G. Ontanon
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1998 Gerald Combs d@wi resha rk.o rg
SPDX-License-Identifier: GPL-2.0-or-later
#define ST_FLG_MASK |
WS_DLL_PUBLIC stats_tree_cfg* stats_tree_register | ( | const gchar * | tapname, |
const gchar * | abbr, | ||
const gchar * | path, | ||
guint | flags, | ||
stat_tree_packet_cb | packet, | ||
stat_tree_init_cb | init, | ||
stat_tree_cleanup_cb | cleanup | ||
) |
Registers a new stats tree with default group REGISTER_STAT_GROUP_UNSORTED.
abbr | tree abbr (used for tshark -z option) |
path | tree display name in GUI menu and window (use "//" for submenus) |
flags | tap listener flags for per-packet callback |
packet | per packet callback |
init | tree initialization callback |
cleanup | cleanup callback |
WS_DLL_PUBLIC stats_tree_cfg* stats_tree_register_plugin | ( | const gchar * | tapname, |
const gchar * | abbr, | ||
const gchar * | path, | ||
guint | flags, | ||
stat_tree_packet_cb | packet, | ||
stat_tree_init_cb | init, | ||
stat_tree_cleanup_cb | cleanup | ||
) |
Registers a new stats tree with default group REGISTER_STAT_GROUP_UNSORTED from a plugin.
abbr | tree abbr (used for tshark -z option) |
path | tree display name in GUI menu and window (use "//" for submenus) |
flags | tap listener flags for per-packet callback |
packet | per packet callback |
init | tree initialization callback |
cleanup | cleanup callback |
WS_DLL_PUBLIC void stats_tree_set_first_column_name | ( | stats_tree_cfg * | st_config, |
const char * | column_name | ||
) |
Set the name a stats tree's first column. Default is "Topic / Item".
column_name | The new column name. |
WS_DLL_PUBLIC void stats_tree_set_group | ( | stats_tree_cfg * | st_config, |
register_stat_group_t | stat_group | ||
) |
Set the menu statistics group for a stats tree.
stat_group | A menu group. |