diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-08-19 09:00:54 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-08-19 08:55:19 +0000 |
commit | fa40025a7e2e9ddc5590515989074df1662dcc82 (patch) | |
tree | b10a6eb7cda8c9f7a7742ebcf419fb9c35bebbe3 /epan/tap.h | |
parent | b755a6687b57ea76bdacfcd8717e9b219129b1b6 (diff) |
Recompile dfilter for all tap listeners when fields changed
When fields have changed the compiled display filter may be invalid
or need a recompile to be valid.
Filters which are not valid after a recompile is set to a filter
matching no packets (frame.number == 0) to indicate that this does
no longer match anything. We should probably have a better filter
matching no packet for this purpose.
Change-Id: Id27efa9f46e77e20df50d7366f26d5cada186f93
Reviewed-on: https://code.wireshark.org/review/10123
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/tap.h')
-rw-r--r-- | epan/tap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/tap.h b/epan/tap.h index 7f2002af17..c3b427f008 100644 --- a/epan/tap.h +++ b/epan/tap.h @@ -218,6 +218,9 @@ WS_DLL_PUBLIC GString *register_tap_listener(const char *tapname, void *tapdata, /** This function sets a new dfilter to a tap listener */ WS_DLL_PUBLIC GString *set_tap_dfilter(void *tapdata, const char *fstring); +/** This function recompiles dfilter for all registered tap listeners */ +WS_DLL_PUBLIC void tap_listeners_dfilter_recompile(void); + /** this function removes a tap listener */ WS_DLL_PUBLIC void remove_tap_listener(void *tapdata); |