aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-12-23 09:06:44 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-23 16:32:55 +0000
commitfb9a4d7413e7cf10cfce432e0d19e60c2f3acfe5 (patch)
tree77c5002638a88741fc0e70693db57a5727fed34f
parentec54234e732c600f5a30824277e9f456462f047c (diff)
Set BCP BPDU to size of bytes used by the protocol, not whole packet.
Bug: 13188 Change-Id: I29b2712d4d6ae57e4b0ea4bc0ec126cb80172779 Reviewed-on: https://code.wireshark.org/review/19400 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-ppp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ppp.c b/epan/dissectors/packet-ppp.c
index 0f3cb483f0..b45a6881af 100644
--- a/epan/dissectors/packet-ppp.c
+++ b/epan/dissectors/packet-ppp.c
@@ -4562,6 +4562,8 @@ dissect_bcp_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
break;
}
+ proto_item_set_len(ti, offset);
+
if (!(flags & BCP_IS_BCONTROL)) {
captured_length = tvb_captured_length_remaining(tvb, offset);
reported_length = tvb_reported_length_remaining(tvb, offset);