aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-06-25 19:14:17 +0000
committerGuy Harris <guy@alum.mit.edu>2005-06-25 19:14:17 +0000
commit4841b02c60d7a4e5d200f158c3fe15ccf18fa220 (patch)
tree27e548e8d2990a102391fc509ee125f93851eb31 /epan
parent608c0fead30895aa2c7979ac8b6b322ba72d9fc4 (diff)
The data in an Identification packet is a message intended to be
human-readable; displayh it with "tvb_format_text()". svn path=/trunk/; revision=14752
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ppp.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ppp.c b/epan/dissectors/packet-ppp.c
index 5097181439..2538a1b40f 100644
--- a/epan/dissectors/packet-ppp.c
+++ b/epan/dissectors/packet-ppp.c
@@ -2641,7 +2641,6 @@ dissect_cp( tvbuff_t *tvb, int proto_id, int proto_subtree_index,
case ECHOREQ:
case ECHOREP:
case DISCREQ:
- case IDENT:
if(tree) {
proto_tree_add_text(fh_tree, tvb, offset, 4, "Magic number: 0x%08x",
tvb_get_ntohl(tvb, offset));
@@ -2653,6 +2652,18 @@ dissect_cp( tvbuff_t *tvb, int proto_id, int proto_subtree_index,
}
break;
+ case IDENT:
+ if(tree) {
+ proto_tree_add_text(fh_tree, tvb, offset, 4, "Magic number: 0x%08x",
+ tvb_get_ntohl(tvb, offset));
+ offset += 4;
+ length -= 4;
+ if (length > 0)
+ proto_tree_add_text(fh_tree, tvb, offset, length, "Message: %s",
+ tvb_format_text(tvb, offset, length));
+ }
+ break;
+
case TIMEREMAIN:
if(tree) {
proto_tree_add_text(fh_tree, tvb, offset, 4, "Magic number: 0x%08x",