aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-11-28 00:48:17 +0000
committerGuy Harris <guy@alum.mit.edu>2005-11-28 00:48:17 +0000
commita195a01dabcc994d5e5ad33e02cb76dc9ef617eb (patch)
tree1401bc9cfc144853354ca5bf3f6032c68b9cb34d /epan
parent96c28846410ec4e867d15a85436b402f67f8db9a (diff)
Don't show the tag twice.
svn path=/trunk/; revision=16612
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-pppoe.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pppoe.c b/epan/dissectors/packet-pppoe.c
index 8cf214aa92..09eb6912c2 100644
--- a/epan/dissectors/packet-pppoe.c
+++ b/epan/dissectors/packet-pppoe.c
@@ -216,8 +216,11 @@ dissect_pppoe_tags(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *tr
default:
if (poe_tag_length > 0 )
{
- /* Presumably unknown tag */
- proto_tree_add_item(pppoe_tree, hf_pppoed_tag, tvb, tagstart, 2, FALSE);
+ /* Presumably unknown tag;
+ show tag value if we didn't
+ do it above */
+ if (!global_pppoe_show_tags_and_lengths)
+ proto_tree_add_item(pppoe_tree, hf_pppoed_tag, tvb, tagstart, 2, FALSE);
proto_tree_add_item(pppoe_tree, hf_pppoed_tag_unknown_data, tvb,
tagstart+4, poe_tag_length, FALSE);
}