diff options
author | Anish Bhatt <anish@chelsio.com> | 2014-05-05 17:30:03 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-05-08 15:02:23 +0000 |
commit | e46d1447be81100a858a192f9bdc5330d2700a15 (patch) | |
tree | bb1bc2a23cbc3f6fcc74b6e4a544ca94702a2637 /epan/dissectors/packet-lldp.c | |
parent | 8070155005be22f76e901d314d0de7502d9ac2fc (diff) |
Small fix to how number of traffic classes is displayed for ETS.
Used proto_tree_add_uint_format_valu instead of append_text
Change-Id: I6d3d6049655c0573b66249ce93ea850c15b1cb7b
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Reviewed-on: https://code.wireshark.org/review/1522
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index 41b9ba59c9..00d39ccb41 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -1775,7 +1775,10 @@ dissect_ieee_802_1_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, if (tree) { proto_tree_add_item(tree, hf_ieee_8021az_feature_flag_willing, tvb, tempOffset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_ieee_8021az_feature_flag_cbs, tvb, tempOffset, 1, ENC_BIG_ENDIAN); - proto_tree_add_item(tree, hf_ieee_8021az_maxtcs, tvb, tempOffset, 1, ENC_BIG_ENDIAN); + + tempByte = (tvb_get_guint8(tvb, tempOffset) & 0x7); + /* 0 implies 8 trafffic classes supported */ + proto_tree_add_uint_format_value(tree, hf_ieee_8021az_maxtcs, tvb, tempOffset, 1, tempByte, "%u (0x%X)", tempByte ? tempByte : 8, tempByte); tempOffset++; |