aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-dscreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-dscreq.c')
-rw-r--r--plugins/docsis/packet-dscreq.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/docsis/packet-dscreq.c b/plugins/docsis/packet-dscreq.c
index 8bae0acce1..c422a881f1 100644
--- a/plugins/docsis/packet-dscreq.c
+++ b/plugins/docsis/packet-dscreq.c
@@ -2,7 +2,7 @@
* Routines for Dynamic Service Change Request dissection
* Copyright 2002, Anand V. Narwani <anand[AT]narwani.org>
*
- * $Id: packet-dscreq.c,v 1.5 2003/05/28 14:52:52 gerald Exp $
+ * $Id: packet-dscreq.c,v 1.6 2003/12/13 03:18:38 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -56,13 +56,11 @@ dissect_dscreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
proto_item *it;
proto_tree *dscreq_tree;
- guint16 tlv_data_len;
guint16 transid;
tvbuff_t *next_tvb;
transid = tvb_get_ntohs (tvb, 0);
- tlv_data_len = tvb_length_remaining (tvb, 2);
if (check_col (pinfo->cinfo, COL_INFO))
{
@@ -74,15 +72,14 @@ dissect_dscreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
if (tree)
{
it =
- proto_tree_add_protocol_format (tree, proto_docsis_dscreq, tvb, 0,
- tvb_length_remaining (tvb, 0),
+ proto_tree_add_protocol_format (tree, proto_docsis_dscreq, tvb, 0, -1,
"DSC Request");
dscreq_tree = proto_item_add_subtree (it, ett_docsis_dscreq);
proto_tree_add_item (dscreq_tree, hf_docsis_dscreq_tranid, tvb, 0, 2,
FALSE);
/* Call dissector for Appendix C TLV's */
- next_tvb = tvb_new_subset (tvb, 2, tlv_data_len, tlv_data_len);
+ next_tvb = tvb_new_subset (tvb, 2, -1, -1);
call_dissector (docsis_tlv_handle, next_tvb, pinfo, dscreq_tree);
}