aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-16 07:35:43 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-16 07:35:43 +0000
commitee1b884ee9b7baa22ebf1a7e1363994124a0ff24 (patch)
tree1eaeec182ddb59258b1ee66e3a901ada60ee9f79 /packet-ipp.c
parentf19c2e2defe72f740356a3df48a64f6e24918130 (diff)
Tvbuffify the STP dissector, have it register itself and have the LLC
dissector call it through a handle, and make it static. Give "dissect_data()" an "offset" argument, so dissectors can use it to dissect part of the packet without having to cook up a new tvbuff. Go back to using "dissect_data()" to dissect the data in an IPP request. svn path=/trunk/; revision=2651
Diffstat (limited to 'packet-ipp.c')
-rw-r--r--packet-ipp.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/packet-ipp.c b/packet-ipp.c
index 4bd9fab7e0..8244d66d2d 100644
--- a/packet-ipp.c
+++ b/packet-ipp.c
@@ -3,7 +3,7 @@
*
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-ipp.c,v 1.15 2000/11/15 08:27:14 guy Exp $
+ * $Id: packet-ipp.c,v 1.16 2000/11/16 07:35:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -235,12 +235,8 @@ dissect_ipp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset = parse_attributes(tvb, offset, ipp_tree);
- if (tvb_offset_exists(tvb, offset)) {
- proto_tree_add_text(ipp_tree, tvb, offset,
- tvb_length_remaining(tvb, offset),
- "Data (%d bytes)",
- tvb_length_remaining(tvb, offset));
- }
+ if (tvb_offset_exists(tvb, offset))
+ dissect_data(tvb, offset, pinfo, ipp_tree);
}
}