From 49abfc47cc4d015f2e2f368d8c92f9ab6ca4377e Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 17 Feb 2014 12:20:34 +0100 Subject: Display the number of unknown BGP Path Attribut (use val_to_str) Change-Id: I6aed8ee3a92cc08aebfef58372285bed5a62e8bd Reviewed-on: https://code.wireshark.org/review/240 Reviewed-by: Alexis La Goutte Tested-by: Alexis La Goutte --- epan/dissectors/packet-bgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index 394fc0452f..ca2e58dad1 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -5114,7 +5114,7 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo) tlen = alen; ti_pa = proto_tree_add_item(subtree, hf_bgp_update_path_attribute, tvb, o + i, tlen + aoff, ENC_NA); - proto_item_append_text(ti_pa, " - %s", val_to_str_const(bgpa_type, bgpattr_type, "Unknown %d")); + proto_item_append_text(ti_pa, " - %s", val_to_str(bgpa_type, bgpattr_type, "Unknown (%u)")); subtree2 = proto_item_add_subtree(ti_pa, ett_bgp_attr); -- cgit v1.2.3