* Routines for Dynamic Service Addition Acknowledge dissection
* Copyright 2002, Anand V. Narwani <anand[AT]narwani.org>
*
- * $Id: packet-dsaack.c,v 1.5 2003/05/28 14:52:52 gerald Exp $
+ * $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
# include "config.h"
#endif
-#include "plugins/plugin_api.h"
-#include "plugins/plugin_api_defs.h"
#include "moduleinfo.h"
#include <stdio.h>
proto_item *it;
proto_tree *dsaack_tree;
guint16 transid;
- guint16 tlv_data_len;
guint8 response;
tvbuff_t *next_tvb;
transid = tvb_get_ntohs (tvb, 0);
response = tvb_get_guint8 (tvb, 2);
- tlv_data_len = tvb_length_remaining (tvb, 3);
if (check_col (pinfo->cinfo, COL_INFO))
{
if (tree)
{
it =
- proto_tree_add_protocol_format (tree, proto_docsis_dsaack, tvb, 0,
- tvb_length_remaining (tvb, 0),
+ proto_tree_add_protocol_format (tree, proto_docsis_dsaack, tvb, 0, -1,
"DSA Acknowledge");
dsaack_tree = proto_item_add_subtree (it, ett_docsis_dsaack);
proto_tree_add_item (dsaack_tree, hf_docsis_dsaack_tranid, tvb, 0, 2,
FALSE);
/* Call Dissector for Appendix C TLV's */
- next_tvb = tvb_new_subset (tvb, 3, tlv_data_len, tlv_data_len);
+ next_tvb = tvb_new_subset (tvb, 3, -1, -1);
call_dissector (docsis_tlv_handle, next_tvb, pinfo, dsaack_tree);
}
}