From 9ba9a05ef06a6869c2ad2970cffa0d9177c04fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 30 Sep 2015 14:34:39 +0100 Subject: Display "IP DSCP" column as short text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ping-Bug: 12429 Change-Id: I618b2017e161d89f0efa25ce2fb82a1808e8d315 Reviewed-on: https://code.wireshark.org/review/10701 Reviewed-by: João Valverde --- epan/dissectors/packet-ipv6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ipv6.c') diff --git a/epan/dissectors/packet-ipv6.c b/epan/dissectors/packet-ipv6.c index 444c6c1b18..236e4dcd26 100644 --- a/epan/dissectors/packet-ipv6.c +++ b/epan/dissectors/packet-ipv6.c @@ -2160,7 +2160,8 @@ dissect_ipv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ } tfc = IPv6_HDR_TCLS(ipv6); - col_add_fstr(pinfo->cinfo, COL_DSCP_VALUE, "%u", IPDSFIELD_DSCP(tfc)); + col_add_str(pinfo->cinfo, COL_DSCP_VALUE, + val_to_str_ext(IPDSFIELD_DSCP(tfc), &dscp_short_vals_ext, "%u")); /* Get extension header and payload length */ plen = g_ntohs(ipv6->ip6_plen); -- cgit v1.2.3