diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2020-12-15 17:20:48 +0100 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2021-01-28 13:41:08 +0000 |
commit | f4ac70818a145c9c6d9fccb3979f16d9c0c5b67a (patch) | |
tree | 0048acf82fbeec6a4e6eec37dbe94f67b2a54834 /debian/libwireshark0.symbols | |
parent | 9fc1ce761020651ee3d296ffc1ee867afb9bdfa6 (diff) |
stat_tap_table_ui: create tables only once during init
If you load a capture file and open any statistics dialog, you'll see the
list of collected items. Each time you press the Apply button (without entering a
display filter) another list of items will be created as a top-level entry
of the statistics tree. Only the first list will have the correct values,
all subsequent lists will not be populated.
Each statistic module defines a stat_tap_table_ui structure that contains a
stat_tap_init_cb function. This init function is called by
SimpleStatisticsDialog::fillTree before the tap listener is registered. This
happens each time we collect the statistics.
However, it seems that all init functions create a new stat_tap_table each
time they are called, even if they already have an existing stat_tap_table
of the same name.
This patch adds a stat_tap_find_table function to find a table by name.
As a first step, we update the ANSI A-I/F BSMAP Statistics to check if its
table is already registered. If it is, the table will not be created again.
Diffstat (limited to 'debian/libwireshark0.symbols')
-rw-r--r-- | debian/libwireshark0.symbols | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/libwireshark0.symbols b/debian/libwireshark0.symbols index e83dc40837..7d60cef044 100644 --- a/debian/libwireshark0.symbols +++ b/debian/libwireshark0.symbols @@ -1519,6 +1519,7 @@ libwireshark.so.0 libwireshark0 #MINVER# stat_node_array_sortcmp@Base 1.12.0~rc1 stat_tap_add_table@Base 2.5.1 stat_tap_by_name@Base 2.5.1 + stat_tap_find_table@Base 3.5.0 stat_tap_get_field_data@Base 2.5.1 stat_tap_get_filter@Base 2.5.1 stat_tap_init_table@Base 2.5.1 |