aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-10-11 14:15:20 +0100
committerMichael Mann <mmann78@netscape.net>2015-10-12 11:28:41 +0000
commit14498f03a3529e82231c372332939be40599f755 (patch)
treead6d1af2f29e62c7d64abe081cf5dc1fdb1ab0bf
parent0f27ed7ed7d7717852413026b65e155c5126a72b (diff)
Fix hfinfo_*_format_display() for BASE_PT_ display types
Change-Id: I1a2a988a737c6821db6ac3a2b9ee9ff48add28c2 Reviewed-on: https://code.wireshark.org/review/10935 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/proto.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 5e6b032227..88825c5fc4 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -7231,6 +7231,14 @@ hfinfo_number_value_format_display(const header_field_info *hfinfo, int display,
ptr = hex_to_str_back(ptr, _hfinfo_type_hex_octet(hfinfo->type), value);
return ptr;
+ case BASE_PT_UDP:
+ case BASE_PT_TCP:
+ case BASE_PT_DCCP:
+ case BASE_PT_SCTP:
+ port_with_resolution_to_str_buf(buf, 32,
+ display_to_port_type((field_display_e)display), value);
+ return buf;
+
default:
g_assert_not_reached();
}