aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-12-09 21:35:01 -0500
committerPascal Quantin <pascal.quantin@gmail.com>2014-12-15 21:09:35 +0000
commitfafa686a684c499c53d71dc513e37d6c8b99a22e (patch)
treefd3e0f253dee7e0cc01fae0512a36443cd1b1c3b /ui
parent27095f956ed68d53dec5d3a9cb46a7e66cfdb03f (diff)
Enable case-insensitive string dissector tables
Permit passing TRUE as the parameter during table registration to achieve that effect. Use it in RTP media type table. Bug: 10708 Change-Id: I892fb1a421d349f0c05197dec90f14fc34ad6b97 Reviewed-on: https://code.wireshark.org/review/5695 Reviewed-by: Evan Huus <eapache@gmail.com> Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/decode_as_dlg.c2
-rw-r--r--ui/qt/decode_as_dialog.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/decode_as_dlg.c b/ui/gtk/decode_as_dlg.c
index 1c012a9258..e63ca6a6ee 100644
--- a/ui/gtk/decode_as_dlg.c
+++ b/ui/gtk/decode_as_dlg.c
@@ -282,7 +282,7 @@ decode_build_show_list (const gchar *table_name, ftenum_t selector_type,
case FT_UINT16:
case FT_UINT24:
case FT_UINT32:
- switch (get_dissector_table_base(table_name)) {
+ switch (get_dissector_table_param(table_name)) {
case BASE_DEC:
g_snprintf(string1, sizeof(string1), "%u", GPOINTER_TO_UINT(key));
diff --git a/ui/qt/decode_as_dialog.cpp b/ui/qt/decode_as_dialog.cpp
index 702f309cd6..72e9455e6e 100644
--- a/ui/qt/decode_as_dialog.cpp
+++ b/ui/qt/decode_as_dialog.cpp
@@ -100,7 +100,7 @@ QString DecodeAsDialog::entryString(const gchar *table_name, gpointer value)
case FT_UINT32:
{
uint num_val = GPOINTER_TO_UINT(value);
- switch (get_dissector_table_base(table_name)) {
+ switch (get_dissector_table_param(table_name)) {
case BASE_DEC:
entry_str = QString::number(num_val);
@@ -347,7 +347,7 @@ void DecodeAsDialog::fillTypeColumn(QTreeWidgetItem *item)
item->setText(type_col_, tr("String"));
} else {
QString type_desc = tr("Integer, base ");
- switch (get_dissector_table_base(table_name)) {
+ switch (get_dissector_table_param(table_name)) {
case BASE_OCT:
type_desc.append("8");
break;