aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-mpls.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-mpls.c b/epan/dissectors/packet-mpls.c
index d164f756a1..06aaf27a5b 100644
--- a/epan/dissectors/packet-mpls.c
+++ b/epan/dissectors/packet-mpls.c
@@ -282,11 +282,8 @@ dissect_pw_ach(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _
if (res != 0)
expert_add_info(pinfo, ti, &ei_mpls_pw_ach_res);
- proto_tree_add_uint_format_value(mpls_pw_ach_tree, hf_mpls_pw_ach_channel_type,
- tvb, 2, 2, channel_type,
- "%s (0x%04x)",
- val_to_str_ext_const(channel_type, &mpls_pwac_types_ext, "Unknown"),
- channel_type);
+ proto_tree_add_item(mpls_pw_ach_tree, hf_mpls_pw_ach_channel_type,
+ tvb, 2, 2, ENC_BIG_ENDIAN);
} /* if (tree) */
@@ -580,7 +577,7 @@ proto_register_mpls(void)
{&hf_mpls_pw_ach_channel_type,
{"Channel Type", "pwach.channel_type",
- FT_UINT16, BASE_HEX, NULL, 0x0,
+ FT_UINT16, BASE_HEX|BASE_EXT_STRING, &mpls_pwac_types_ext, 0x0,
"PW Associated Channel Type", HFILL }
},