aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-16 07:35:43 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-16 07:35:43 +0000
commit510d1fca23a82e494ff4ea4358bed63bf2336afd (patch)
tree1eaeec182ddb59258b1ee66e3a901ada60ee9f79 /packet-ipp.c
parent29a3d8f7c035ec7cc502e0107d6951ec2162d4f8 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2651 f5534014-38df-0310-8fa8-9805f1628bb7
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);
}
}