aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ppp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2004-12-13 22:19:03 +0000
committerAnders Broman <anders.broman@ericsson.com>2004-12-13 22:19:03 +0000
commit6ced79161ab5acf273a2ef1ad02d2c52fd381cb4 (patch)
tree6e46b43dc4e68476950c6485882220ccebaf1a33 /epan/dissectors/packet-ppp.c
parente4b76b25e6d9b78a8f9e68e0f86cd4496eda6b8a (diff)
Don't display the end delimiter as a fragment and change the bytes higligted with "PPP DATA" to exclude
the delimiters(or shold they both be included?) svn path=/trunk/; revision=12748
Diffstat (limited to 'epan/dissectors/packet-ppp.c')
-rw-r--r--epan/dissectors/packet-ppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ppp.c b/epan/dissectors/packet-ppp.c
index e2a87cf461..ec84662fac 100644
--- a/epan/dissectors/packet-ppp.c
+++ b/epan/dissectors/packet-ppp.c
@@ -3334,7 +3334,7 @@ dissect_ppp_raw_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
}
length = end_offset - offset;
if (tree)
- proto_tree_add_text(bs_tree, tvb, offset, length, "PPP Data");
+ proto_tree_add_text(bs_tree, tvb, offset+1, length-1, "PPP Data");
if (length > 1) {
ppp_tvb = remove_escape_chars(tvb, offset + 1, length - 1);
if (ppp_tvb != NULL) {
@@ -3343,7 +3343,7 @@ dissect_ppp_raw_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
first = FALSE;
}
}
- offset = end_offset;
+ offset = end_offset+1;/* +1 Takes us past the end delimiter */
} /* end while */
}