|
Wireshark 4.5.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
| struct | _srt_procedure_t |
| struct | _srt_stat_table |
| struct | _srt_data_t |
Typedefs | |
| typedef struct _srt_procedure_t | srt_procedure_t |
| typedef struct _srt_stat_table | srt_stat_table |
| typedef void(* | srt_proc_table_cb) (srt_stat_table *rst, int indx, struct _srt_data_t *gui_data) |
| typedef void(* | srt_init_cb) (struct register_srt *srt, GArray *srt_array) |
| typedef unsigned(* | srt_param_handler_cb) (struct register_srt *srt, const char *opt_arg, char **err) |
| typedef struct _srt_data_t | srt_data_t |
| typedef struct register_srt | register_srt_t |
Functions | |
| WS_DLL_PUBLIC void | register_srt_table (const int proto_id, const char *tap_listener, int max_tables, tap_packet_cb srt_packet_func, srt_init_cb init_cb, srt_param_handler_cb param_cb) |
| WS_DLL_PUBLIC int | get_srt_proto_id (register_srt_t *srt) |
| WS_DLL_PUBLIC const char * | get_srt_tap_listener_name (register_srt_t *srt) |
| WS_DLL_PUBLIC int | get_srt_max_tables (register_srt_t *srt) |
| WS_DLL_PUBLIC tap_packet_cb | get_srt_packet_func (register_srt_t *srt) |
| WS_DLL_PUBLIC void | set_srt_table_param_data (register_srt_t *srt, void *data) |
| WS_DLL_PUBLIC void * | get_srt_table_param_data (register_srt_t *srt) |
| WS_DLL_PUBLIC register_srt_t * | get_srt_table_by_name (const char *name) |
| WS_DLL_PUBLIC void | free_srt_table_data (srt_stat_table *rst) |
| WS_DLL_PUBLIC void | free_srt_table (register_srt_t *srt, GArray *srt_array) |
| WS_DLL_PUBLIC void | reset_srt_table (GArray *srt_array) |
| WS_DLL_PUBLIC void | srt_table_iterate_tables (wmem_foreach_func func, void *user_data) |
| WS_DLL_PUBLIC void | srt_table_get_filter (register_srt_t *srt, const char *opt_arg, const char **filter, char **err) |
| WS_DLL_PUBLIC void | srt_table_dissector_init (register_srt_t *srt, GArray *srt_array) |
| WS_DLL_PUBLIC char * | srt_table_get_tap_string (register_srt_t *srt) |
| WS_DLL_PUBLIC srt_stat_table * | init_srt_table (const char *name, const char *short_name, GArray *srt_array, int num_procs, const char *proc_column_name, const char *filter_string, void *table_specific_data) |
| WS_DLL_PUBLIC void | init_srt_table_row (srt_stat_table *rst, int proc_index, const char *procedure) |
| WS_DLL_PUBLIC void | add_srt_table_data (srt_stat_table *rst, int proc_index, const nstime_t *req_time, packet_info *pinfo) |
GUI independent helper routines common to all service response time (SRT) taps.
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 register_srt register_srt_t |
Structure for information about a registered service response table
| typedef struct _srt_data_t srt_data_t |
tap data
| typedef struct _srt_procedure_t srt_procedure_t |
Procedure data
| typedef struct _srt_stat_table srt_stat_table |
Statistics table
| WS_DLL_PUBLIC void add_srt_table_data | ( | srt_stat_table * | rst, |
| int | proc_index, | ||
| const nstime_t * | req_time, | ||
| packet_info * | pinfo | ||
| ) |
Add srt response to table row data.
| rst | the srt table |
| proc_index | number of procedure |
| req_time | the time of the corresponding request |
| pinfo | current packet info |
| WS_DLL_PUBLIC void free_srt_table | ( | register_srt_t * | srt, |
| GArray * | srt_array | ||
| ) |
Free the srt table data.
| srt | Registered SRT |
| srt_array | SRT table array |
| WS_DLL_PUBLIC void free_srt_table_data | ( | srt_stat_table * | rst | ) |
Free the srt table data.
| rst | the srt table |
| WS_DLL_PUBLIC int get_srt_max_tables | ( | register_srt_t * | srt | ) |
Get maximum number of tables from SRT
| srt | Registered SRT |
| WS_DLL_PUBLIC tap_packet_cb get_srt_packet_func | ( | register_srt_t * | srt | ) |
Get tap function handler from SRT
| srt | Registered SRT |
| WS_DLL_PUBLIC int get_srt_proto_id | ( | register_srt_t * | srt | ) |
Get protocol ID from SRT
| srt | Registered SRT |
| WS_DLL_PUBLIC register_srt_t * get_srt_table_by_name | ( | const char * | name | ) |
Get SRT table by its dissector name
| name | dissector name to fetch. |
| WS_DLL_PUBLIC void * get_srt_table_param_data | ( | register_srt_t * | srt | ) |
Get parameter data from SRT
| srt | Registered SRT |
| WS_DLL_PUBLIC const char * get_srt_tap_listener_name | ( | register_srt_t * | srt | ) |
Get string for register_tap_listener call. Typically just dissector name
| srt | Registered SRT |
| WS_DLL_PUBLIC srt_stat_table * init_srt_table | ( | const char * | name, |
| const char * | short_name, | ||
| GArray * | srt_array, | ||
| int | num_procs, | ||
| const char * | proc_column_name, | ||
| const char * | filter_string, | ||
| void * | table_specific_data | ||
| ) |
Init an srt table data structure.
| name | the table name |
| short_name | the name used in a tab display |
| srt_array | the srt table array to add to |
| num_procs | number of procedures |
| proc_column_name | procedure column name (if different from "Procedure") |
| filter_string | table filter string or NULL |
| table_specific_data | Table specific data |
| WS_DLL_PUBLIC void init_srt_table_row | ( | srt_stat_table * | rst, |
| int | proc_index, | ||
| const char * | procedure | ||
| ) |
Init an srt table row data structure.
| rst | the srt table |
| proc_index | number of procedure |
| procedure | the procedures name |
| WS_DLL_PUBLIC void register_srt_table | ( | const int | proto_id, |
| const char * | tap_listener, | ||
| int | max_tables, | ||
| tap_packet_cb | srt_packet_func, | ||
| srt_init_cb | init_cb, | ||
| srt_param_handler_cb | param_cb | ||
| ) |
Register the service response time table for the srt windows.
| proto_id | is the protocol with conversation |
| tap_listener | string for register_tap_listener (NULL to just use protocol name) |
| max_tables | maximum number of tables |
| srt_packet_func | the tap processing function |
| init_cb | initialize dissector SRT function |
| param_cb | handles dissection of parameters to optional arguments of tap string |
| WS_DLL_PUBLIC void reset_srt_table | ( | GArray * | srt_array | ) |
Reset ALL tables in the srt.
| srt_array | SRT table array |
| WS_DLL_PUBLIC void set_srt_table_param_data | ( | register_srt_t * | srt, |
| void * | data | ||
| ) |
Set parameter data from SRT parsed from tap string. Data will be freed on tap reset
| srt | Registered SRT |
| data | Parameter data |
| WS_DLL_PUBLIC void srt_table_dissector_init | ( | register_srt_t * | srt, |
| GArray * | srt_array | ||
| ) |
"Common" initialization function for all GUIs
| srt | Registered SRT |
| srt_array | SRT table array |
| WS_DLL_PUBLIC void srt_table_get_filter | ( | register_srt_t * | srt, |
| const char * | opt_arg, | ||
| const char ** | filter, | ||
| char ** | err | ||
| ) |
Return filter used for register_tap_listener
| srt | Registered SRT |
| opt_arg | passed in opt_arg from GUI |
| filter | returned filter string to be used for registering tap |
| err | returned error if opt_arg string can't be successfully parsed. Caller must free memory |
| WS_DLL_PUBLIC char * srt_table_get_tap_string | ( | register_srt_t * | srt | ) |
Helper function to get tap string name Caller is responsible for freeing returned string
| srt | Registered SRT |
| WS_DLL_PUBLIC void srt_table_iterate_tables | ( | wmem_foreach_func | func, |
| void * | user_data | ||
| ) |
Iterator to walk srt tables and execute func Used for initialization
| func | action to be performed on all conversation tables |
| user_data | any data needed to help perform function |