aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/filter_dlg.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-12-19 09:21:20 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2014-12-20 17:59:25 +0000
commit7b2ae7123521a6000ab7f0c655ec7125c8eb688a (patch)
tree6a8d4000df6a53d1a1fef2dbf987facb80880a61 /ui/gtk/filter_dlg.h
parentabd90c32bbba16d848905b15f2b6ccfc353c8e41 (diff)
Fix filter valid/invalid test for multifield custom type
Check for "or" or "||" (also ignore whitespaces) and check both arguments of this operator to be fieldname (character check), then check whole filter is valid for dfilter compiler. Change-Id: I412b5dc1fca16fcd2b640aa74af81167300fd11e Reviewed-on: https://code.wireshark.org/review/5848 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui/gtk/filter_dlg.h')
-rw-r--r--ui/gtk/filter_dlg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/filter_dlg.h b/ui/gtk/filter_dlg.h
index 39e77e0597..40a781feeb 100644
--- a/ui/gtk/filter_dlg.h
+++ b/ui/gtk/filter_dlg.h
@@ -123,6 +123,9 @@ void filter_te_syntax_check_cb(GtkWidget *widget, gpointer user_data _U_);
/** Only validate a single field entry. */
#define E_FILT_FIELD_NAME_ONLY_KEY "filter_field_name_only"
+/** Only validate a multi field entry. */
+#define E_FILT_MULTI_FIELD_NAME_ONLY_KEY "filter_multi_field_name_only"
+
/** Update statusbar when changing the filter entry. */
#define E_FILT_FIELD_USE_STATUSBAR_KEY "filter_field_use_statusbar"