|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include "ws_symbol_export.h"#include <epan/params.h>#include <epan/stat_groups.h>#include <epan/packet_info.h>#include <epan/tap.h>#include <epan/wmem_scopes.h>Go to the source code of this file.
Classes | |
| struct | _tap_param |
| struct | _stat_tap_ui |
| struct | _stat_tap_table_item_type |
| Represents a single item in a statistics tap table. More... | |
| struct | _stat_tap_table_item |
| struct | _stat_tap_table |
| struct | _stat_tap_table_ui |
| struct | _stat_data_t |
Typedefs | |
| typedef struct _tap_param | tap_param |
| typedef bool(* | stat_tap_init_cb) (const char *, void *) |
| typedef struct _stat_tap_ui | stat_tap_ui |
| typedef struct _stat_tap_table_item_type | stat_tap_table_item_type |
| Represents a single item in a statistics tap table. | |
| typedef struct _stat_tap_table_item | stat_tap_table_item |
| typedef struct _stat_tap_table | stat_tap_table |
| typedef struct _stat_tap_table_ui | stat_tap_table_ui |
| typedef struct _stat_data_t | stat_data_t |
Functions | |
| void | stat_tap_init (void) |
| Initializes the statistics tap system, setting up necessary data structures. | |
| WS_DLL_PUBLIC void | register_stat_tap_ui (stat_tap_ui *ui, void *userdata) |
| WS_DLL_PUBLIC void | register_stat_tap_table_ui (stat_tap_table_ui *ui) |
| WS_DLL_PUBLIC void | stat_tap_iterate_tables (wmem_foreach_func func, void *user_data) |
| WS_DLL_PUBLIC void | stat_tap_get_filter (stat_tap_table_ui *new_stat, const char *opt_arg, const char **filter, char **err) |
| WS_DLL_PUBLIC stat_tap_table * | stat_tap_init_table (const char *name, int num_fields, int num_elements, const char *filter_string) |
| WS_DLL_PUBLIC void | stat_tap_add_table (stat_tap_table_ui *new_stat, stat_tap_table *table) |
| Adds a new table to the statistics tap. | |
| WS_DLL_PUBLIC stat_tap_table * | stat_tap_find_table (stat_tap_table_ui *ui, const char *name) |
| Finds a table by its UI structure and name. | |
| WS_DLL_PUBLIC void | stat_tap_init_table_row (stat_tap_table *stat_table, unsigned table_index, unsigned num_fields, const stat_tap_table_item_type *fields) |
| WS_DLL_PUBLIC stat_tap_table_item_type * | stat_tap_get_field_data (const stat_tap_table *stat_table, unsigned table_index, unsigned field_index) |
| WS_DLL_PUBLIC void | stat_tap_set_field_data (stat_tap_table *stat_table, unsigned table_index, unsigned field_index, stat_tap_table_item_type *field_data) |
| Set field data for a specific table and field index. | |
| WS_DLL_PUBLIC void | reset_stat_table (stat_tap_table_ui *new_stat) |
| WS_DLL_PUBLIC stat_tap_table_ui * | stat_tap_by_name (const char *name) |
| WS_DLL_PUBLIC void | free_stat_tables (stat_tap_table_ui *new_stat) |
| Free all of the tables associated with a stat_tap_table_ui. | |
| WS_DLL_PUBLIC bool | process_stat_cmd_arg (const char *optstr) |
| Processes a command argument for statistics. | |
| WS_DLL_PUBLIC void | list_stat_cmd_args (void) |
| List command-line arguments for requested statistics. | |
| WS_DLL_PUBLIC bool | start_requested_stats (void) |
| Start requested statistics. | |
Declarations of routines to register UI information for stats
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| typedef struct _stat_data_t stat_data_t |
tap data
| typedef struct _stat_tap_table_item_type stat_tap_table_item_type |
Represents a single item in a statistics tap table.
This structure holds a typed value used in statistical reporting, such as counters, labels, or computed metrics. It also includes a scratchpad area (user_data) for dissector-specific temporary storage or extended metadata.
| WS_DLL_PUBLIC void free_stat_tables | ( | stat_tap_table_ui * | new_stat | ) |
Free all of the tables associated with a stat_tap_table_ui.
Frees data created by stat_tap_ui.stat_tap_init_cb. stat_tap_table_ui.stat_tap_free_table_item_cb is called for each index in each row.
| new_stat | Parent stat_tap_table_ui struct, provided by the dissector. |
| WS_DLL_PUBLIC void list_stat_cmd_args | ( | void | ) |
List command-line arguments for requested statistics.
This function iterates through a list of command-line arguments and processes them to request specific statistics.
| WS_DLL_PUBLIC bool process_stat_cmd_arg | ( | const char * | optstr | ) |
Processes a command argument for statistics.
| optstr | The option string to process. |
| WS_DLL_PUBLIC void register_stat_tap_ui | ( | stat_tap_ui * | ui, |
| void * | userdata | ||
| ) |
Register UI information for a tap.
| ui | UI information for the tap. |
| userdata | Additional data for the init routine. |
| WS_DLL_PUBLIC bool start_requested_stats | ( | void | ) |
Start requested statistics.
This function processes and initializes all registered statistics taps that have been requested.
| WS_DLL_PUBLIC void stat_tap_add_table | ( | stat_tap_table_ui * | new_stat, |
| stat_tap_table * | table | ||
| ) |
Adds a new table to the statistics tap.
| new_stat | Pointer to the statistics tap UI structure. |
| table | Pointer to the statistics tap table structure. |
| WS_DLL_PUBLIC stat_tap_table * stat_tap_find_table | ( | stat_tap_table_ui * | ui, |
| const char * | name | ||
| ) |
Finds a table by its UI structure and name.
| ui | The UI structure containing the tables. |
| name | The name of the table to find. |
|
extern |
Initializes the statistics tap system, setting up necessary data structures.
Initialize statistics tap system.
| WS_DLL_PUBLIC void stat_tap_set_field_data | ( | stat_tap_table * | stat_table, |
| unsigned | table_index, | ||
| unsigned | field_index, | ||
| stat_tap_table_item_type * | field_data | ||
| ) |
Set field data for a specific table and field index.
| stat_table | Pointer to the stat_tap_table structure. |
| table_index | Index of the table within the stat_tap_table. |
| field_index | Index of the field within the specified table. |
| field_data | Pointer to the new field data to be set. |