aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorTom Hughes <tom@compton.nu>2018-10-26 01:00:48 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2018-10-27 14:46:06 +0000
commit076f941bc9292009dc0c8412e7d0418a3fa049c6 (patch)
treeb903bc8aa2e535a19bd4d166b4c8947052cfc423 /epan/proto.c
parent27070dd05964823adefbd159595e61b515c52e49 (diff)
IAX: Use extended 64 bit value to string matching for codecs
Change-Id: I23fe00594296dd29b456804043b6302bd0219884 Reviewed-on: https://code.wireshark.org/review/30394 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 027044e59f..650318a55a 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -8750,8 +8750,12 @@ hf_try_val_to_str(guint32 value, const header_field_info *hfinfo)
static const char *
hf_try_val64_to_str(guint64 value, const header_field_info *hfinfo)
{
- if (hfinfo->display & BASE_VAL64_STRING)
- return try_val64_to_str(value, (const val64_string *) hfinfo->strings);
+ if (hfinfo->display & BASE_VAL64_STRING) {
+ if (hfinfo->display & BASE_EXT_STRING)
+ return try_val64_to_str_ext(value, (val64_string_ext *) hfinfo->strings);
+ else
+ return try_val64_to_str(value, (const val64_string *) hfinfo->strings);
+ }
if (hfinfo->display & BASE_RANGE_STRING)
return try_rval64_to_str(value, (const range_string *) hfinfo->strings);